| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011, 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 // Dart core library. | |
| 6 | |
| 7 class MathNatives { | |
| 8 static double cos(num d) native; | |
| 9 static double sin(num d) native; | |
| 10 static double tan(num d) native; | |
| 11 static double acos(num d) native; | |
| 12 static double asin(num d) native; | |
| 13 static double atan(num d) native; | |
| 14 static double atan2(num a, num b) native; | |
| 15 static double sqrt(num d) native; | |
| 16 static double exp(num d) native; | |
| 17 static double log(num d) native; | |
| 18 static double pow(num d1, num d2) native; | |
| 19 static double random() native; | |
| 20 static int parseInt(String str) native; | |
| 21 static double parseDouble(String str) native; | |
| 22 | |
| 23 static BadNumberFormatException _newBadNumberFormat(x) native { | |
| 24 return new BadNumberFormatException(x); | |
| 25 } | |
| 26 } | |
| OLD | NEW |