summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testDivisionFloat.js
blob: 44f67659a8e82cd25c0f4dee8b23e51c552723a1 (plain)
1
2
3
4
5
6
7
8
9
10
function testDivisionFloat() {
    var a = 32768.0;
    var b;
    while (b !== 1) {
        b = a / 2.0;
        a = b;
    }
    return a === 1.0;
}
assertEq(testDivisionFloat(), true);