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

Inconsistent display/handling of integers #2048

Open
goualard-f opened this issue Apr 6, 2023 · 0 comments
Open

Inconsistent display/handling of integers #2048

goualard-f opened this issue Apr 6, 2023 · 0 comments

Comments

@goualard-f
Copy link

Describe the bug

Integers are inconsistently displayed and manipulated in the "Calculations" app depending on their number of digits.

  • If the number of digits is less than 26, the value is displayed as an integer in full, alongside its approximation in scientific format;
  • If the number has between 26 and 30 digits, only the approximation in scientific format is displayed but the integer value with all its digits is accessible by inspecting the result with the "up" arrow;
  • If the number has more than 30 digits, only the approximation in scientific format is displayed and the correct integer value is not accessible at all.

Examples:

  • $24! = 620448401733239439360000$ (24 digits: printed as an integer in full);
  • $28! = 304888344611713860501504000000$ (30 digits: printed in full provided we inspect the result with the "up" arrow);
  • $29! = 8841761993739701954543616000000$ (31 digits: only approximated to 14 digits---may vary depending on the number of significant figures chosen---as 8.8417619937397e30).

Even more troubling:
When the integer has more than 30 digits, it seems it is never stored as an integer and only its approximation is accessible. Case in point: when I compute

$29! - 8841761993739701954543616000000$

I get $1.954543616e15$ instead of $0$ and the expression displayed after the computation is not what I entered but:

$29! -8.8417619937397e30$

Screenshots

screenshot

screenshot(1)

To Reproduce

Steps to reproduce the behavior:

  1. Go to the 'Calculations' app
  2. Type '29!-8841761993739701954543616000000'
  3. See error

Expected behavior

The user should be able to inspect all the digits of an integer, irrespective of its number of digits. An integer should not be approximated without at least some kind of warning.

Environment

  • Epsilon version (Settings > About > Software version): 20.4.0
  • The platform(s) on which the problem happens: online simulator, actual device, etc...
    Online simulator. Actual device should also be affected.
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

1 participant