OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 // VMOptions=--no-intrinsify |
| 6 |
| 7 // Test that math runtime function (non-intrinsified) produce the expected |
| 8 // result and don't deviate due to double-rounding when using 80-bit FP ops. |
| 9 |
| 10 import "dart:math"; |
| 11 import "package:expect/expect.dart"; |
| 12 |
| 13 main() { |
| 14 var x = 2.028240960366921e+31; |
| 15 Expect.equals(4503599627372443.0, sqrt(x)); |
| 16 } |
OLD | NEW |