Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eval script of Number.EPSILON #131

Open
ardiberisha opened this issue Sep 12, 2022 · 1 comment
Open

Eval script of Number.EPSILON #131

ardiberisha opened this issue Sep 12, 2022 · 1 comment

Comments

@ardiberisha
Copy link

When using Number.EPSILON on eval function it returns null instead of the actual value of Number.EPSILON.

@mxro
Copy link
Collaborator

mxro commented Sep 17, 2022

Thank you for raising an issue!

I assume the same issue applies when using vanilla Nashorn without the sandbox? Don't think the Sandbox adds any particular logic here that could cause this issue.

As a workaround, would it be possible to convert the number to a string, parse it as a string to Java and then parse the number in Java? Or, alternatively, just log out the number and store it as a constant in Java?

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

No branches or pull requests

2 participants