|
@@ -98,6 +98,11 @@ Std.parseInt(' -0x10') == -16;
|
|
|
#end
|
|
|
#end
|
|
|
|
|
|
+#if !neko
|
|
|
+Std.parseInt("+123") == 123;
|
|
|
+Std.parseInt("-0xa0") == -160;
|
|
|
+#end
|
|
|
+
|
|
|
// parseFloat
|
|
|
Std.parseFloat("0") == 0.;
|
|
|
Std.parseFloat(" 5.3") == 5.3;
|
|
@@ -118,6 +123,7 @@ Std.parseFloat("2.426670815e-12") == 2.426670815e-12;
|
|
|
Std.parseFloat("2.426670815E-12") == 2.426670815e-12;
|
|
|
// Std.parseInt("0x C") == 0;
|
|
|
// Std.parseInt("0x+A") == 0;
|
|
|
+Std.parseFloat(" \t42.2") == 42.2;
|
|
|
|
|
|
// random
|
|
|
var x = Std.random(2);
|