Skip to content

Conversation

@yuxiaomao
Copy link
Contributor

Previously 1e5, 1e-5 are evaluated as EConst(CFloat(Infinity)), caused by division by exp (which is 0).

return TConst(CFloat((Math.pow(10, pow) / exp) * n * 10));

@ncannasse ncannasse merged commit 78d5cbd into HaxeFoundation:master Dec 10, 2024
1 check failed
@yuxiaomao yuxiaomao deleted the dev-expfloat branch December 10, 2024 13:17
Jamextreme140 added a commit to CodenameCrew/hscript-improved that referenced this pull request Apr 10, 2025
Fix 1e5, 1e-5 evaluated as Infinity (HaxeFoundation#132)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants