Fix 1e parsing
Fix 1e5, 1e-5 evaluated as Infinity (https://github.com/HaxeFoundation/hscript/pull/132)
This commit is contained in:
@@ -1943,6 +1943,8 @@ class Parser {
|
||||
}
|
||||
if( pow == null )
|
||||
invalidChar(char);
|
||||
if( exp == 0 )
|
||||
exp = 10;
|
||||
return TConst(CFloat((Math.pow(10, pow) / exp) * n * 10));
|
||||
case ".".code:
|
||||
if( exp > 0 ) {
|
||||
|
||||
Reference in New Issue
Block a user