-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed as not planned
Labels
Description
Description
System.Half ToString() produces incorrect numbers.
Example: Half.MaxValue shows 65500, Half.MinValue -65500
but should be 65504 and -65504.
Binary, the values are correct as I have checked:
Reproduction Steps
var s1 = Half.MaxValue.ToString(); // 65500
var s2 = ((double)Half.MaxValue).ToString(); // 65504Expected behavior
var s1 = Half.MaxValue.ToString(); // 65504Actual behavior
var s1 = Half.MaxValue.ToString(); // 65500Regression?
No response
Known Workarounds
No response
Configuration
7.0.0-rc.1.22422.12
Other information
No response
Reactions are currently unavailable
