Skip to content

Commit

Permalink
Fix comment that had cut/paste error
Browse files Browse the repository at this point in the history
  • Loading branch information
x448 committed Jan 9, 2020
1 parent a24b1ec commit c8df72c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions float16.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,17 @@ type Precision int

const (

// PrecisionExact is for subnormals that don't drop bits during conversion but not all of these can round-trip.
// PrecisionExact is for non-subnormals that don't drop bits during conversion.
// All of these can round-trip. Should always convert to float16.
PrecisionExact Precision = iota

// PrecisionUnknown is for Subnormals that don't drop bits during conversion but not all of these can round-trip.
// PrecisionUnknown is for subnormals that don't drop bits during conversion but
// not all of these can round-trip so precision is unknown without more effort.
// Only 2046 of these can round-trip and the rest cannot round-trip.
PrecisionUnknown

// PrecisionInexact is for dropped significand bits and cannot round-trip. Some of these are subnormals.
// PrecisionInexact is for dropped significand bits and cannot round-trip.
// Some of these are subnormals. Cannot round-trip float32->float16->float32.
PrecisionInexact

// PrecisionUnderflow is for Underflows. Cannot round-trip float32->float16->float32.
Expand Down

0 comments on commit c8df72c

Please sign in to comment.