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

studio renders small floats inconsistently with q #144

Open
adavies42 opened this issue Jul 24, 2023 · 1 comment
Open

studio renders small floats inconsistently with q #144

adavies42 opened this issue Jul 24, 2023 · 1 comment

Comments

@adavies42
Copy link

studio rounds very small floats to zero, which q never does

e.g. enter 7.275958e-12 in studio and run it, and it returns 0f, while the q console would say 7.275958e-12 for the same input

@gyorokpeter
Copy link

Apparently q switches to exponential notation if the exponent is less than -4 or greater than 16. Do we want to mirror this behavior in studio? Or should it be configurable, like there is already a "decimal digits" setting? Using that setting it's possible to view this number as non-zero, although it still uses the full decimal notation, e.g. setting it to 20 gives 0.000000000007275958f.

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