| 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 |
|
| 13 |
// CHECK#1 |
| 14 |
if (Number(".12345") !== +("12345") * 1e-5) { |
| 15 |
$ERROR('#1: Number(".12345") === +("12345")*1e-5'); |
| 16 |
} |