View Issue Details

IDProjectCategoryView StatusLast Update
0026536RunnerHTML5Public2017-08-03 15:55
ReporterYellowAfterlifeAssigned ToMike Dailly 
PriorityLowSeverityC - GeneralReproducibility100%
Status ClosedResolutionFixed 
PlatformWindowsOSWindows 8OS Version8.1
Product Version 
Target VersionFixed in Version 
Summary0026536: HTML5: round(-0.999998765) returns 0
DescriptionThe function goes like this
function _h41(value) {
    var i = value & 0xffffffff;
    var f = value - i;
    if ((i & 1) == 1) {
        if (f >= 0.5) {
            return i + 1
        } else {
            return i
        }
    } else {
        if (f <= 0.5) {
            return i
        } else {
            return i + 1
        }
    }
}

the problem with this is that for negative values i is truncated, and thus f is negative, breaking (f >= 0.5) \ (f <= 0.5) conditions.
1.4 Found In7.7.1457
2.x Runtime Found In2.0.6.93
2.x Runtime Verified In

Activities

YellowAfterlife

2017-05-16 15:27

Developer  

a_bug.gmz (119,564 bytes)

Mike Dailly

2017-05-16 20:14

Manager   ~0053144

fixed internally