Actions
Bug #12878
closed0.49999999999999994.round is 1 and not 0 on Windows 64
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.1p112 (2016-04-26 revision 54768) [x64-mingw32]
Description
0.49999999999999994.round produces 1 on this platform, while all other platforms seem to produce the expected 0 (round-to-nearest).
Maybe this is due to some slightly different floating-point representation?
See https://ci.appveyor.com/project/eregon/spec-x948i/build/190/job/jk8eb1u2kq6npwn4 which reproduced it in a run of ruby/spec.
Actions
Like0
Like0Like0