haxe icon indicating copy to clipboard operation
haxe copied to clipboard

[php] Std.parseInt allows exponent notation

Open tobil4sk opened this issue 3 years ago • 0 comments

While looking to fix some parseInt issues (PR soon), I noticed that Std.parseInt on php allows for the exponent notation.

Std.parseInt("10e2"); // returns 1000

This does not match the other targets, which treat the e2 as trailing text.

It may be best to document this as unspecified behaviour to avoid making the parseInt implementation too complex?

tobil4sk avatar Mar 12 '22 12:03 tobil4sk