Closed mmsaito closed 6 months ago
I assume that this issue only affects 32-bit systems?
BTW, a more direct way to convert a real
number to its bit representation is Unsafe.realToBits
.
Looking at the code, there was a typo (wrong constant) in the 32-bit version of the code. Fixed for 110.99.5.
Thank you for your prompt work. I've understand that the problem has been fixed and it will be available in the forthcoming version.
Best regards
Version
110.99.4 (Latest)
Operating System
OS Version
Windows 10
Processor
System Component
SML/NJ Library
Severity
Major
Description
In specification (and the past imprementation) Random.randReal rand returns a number between 0 and 1. But in this version it returns quite smaller values of 4.7x10^-7 at maximum. In addition, the hex image of these number shows the last 20bits are always zero.
Transcript
Expected Behavior
No response
Steps to Reproduce
Additional Information
I haven't see any irregularity in realInt. So, a manual transform from integer to real could mitigate the problem for a meanwhile:
Email address
saitohm@sun.ac.jp