-
Notifications
You must be signed in to change notification settings - Fork 488
Closed
Description
This is asserting that a hexadecimal float literal with too many significand bits is rejected as malformed.
I believe this doesn't match the spec, which implies that a hexadecimal float literal with too many hexits may be accepted with rounding:
The value of a literal must not lie outside the representable range of the corresponding IEEE 754 type (that is, a numeric value must not overflow to ±infinity), but it may be rounded to the nearest representable value.
Note: Rounding can be prevented by using hexadecimal notation with no more significant bits than supported by the required type.
Is the intent for the spec to prohibit rounded hex floats?
Metadata
Metadata
Assignees
Labels
No labels