Skip to content

Commit c8df72c

Browse files
committed
Fix comment that had cut/paste error
1 parent a24b1ec commit c8df72c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

float16.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,17 @@ type Precision int
2020

2121
const (
2222

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

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

29-
// PrecisionInexact is for dropped significand bits and cannot round-trip. Some of these are subnormals.
32+
// PrecisionInexact is for dropped significand bits and cannot round-trip.
33+
// Some of these are subnormals. Cannot round-trip float32->float16->float32.
3034
PrecisionInexact
3135

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

0 commit comments

Comments
 (0)