Debian Codegraph @

js/src/tests/test262/built-ins/Number/S9.3.1_A10.js

raw
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 info: |
6 The MV of StrUnsignedDecimalLiteral:::. DecimalDigits is the
7 MV of DecimalDigits times 10<sup><small>-n</small></sup>, where n is the
8 number of characters in DecimalDigits
9 es5id: 9.3.1_A10
10 description: Compare Number('.12345') with +('12345')*1e-5
11 ---*/
12 assert.sameValue(+('12345')*1e-5, 0.12345);
13
14 reportCompare(0, 0);