GNU Astronomy Utilities - Bugs: bug #61969, Incorrect output for integer...
You are not allowed to post comments on this tracker with your current authentication level.
bug #61969: Incorrect output for integer calculations
Submitter: | Pedram Ashofteh-Ardakani <pedram> | ||
Submitted: | Tue 01 Feb 2022 05:42:43 AM UTC | ||
Category: | Arithmetic | Severity: | 3 - Normal |
Item Group: | Output not reasonable | Status: | Fixed |
Privacy: | Public | Assigned to: | pedram |
Open/Closed: | Closed |
Tue 01 Feb 2022 10:32:08 AM UTC, comment #4: |
Pedram Ashofteh-Ardakani <pedram>![]() ![]() |
Tue 01 Feb 2022 09:58:28 AM UTC, comment #3: That last example was great (and more clear!). Here is the reason behind this behavior (which is expected, but not intuitive):
|
Mohammad Akhlaghi <makhlaghi>![]() |
Tue 01 Feb 2022 05:59:10 AM UTC, comment #2: I thought maybe this was related to bug #61940 Numbers with many decimals incorrectly been read as float32, so I tried with the most recent version, and the problem persists.
|
Pedram Ashofteh-Ardakani <pedram>![]() ![]() |
Tue 01 Feb 2022 05:49:37 AM UTC, comment #1: Actually, the problem occurs for the most basic multiplications with results greater than about 300:
|
Pedram Ashofteh-Ardakani <pedram>![]() ![]() |
Tue 01 Feb 2022 05:42:43 AM UTC, original submission:
problemIncorrect output for a combination of multiplication, subtraction and addition when using integers, but it works fine with float.
steps to reproduce
|
Pedram Ashofteh-Ardakani <pedram>![]() ![]() |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Sure Mohammad, I defined it here in task #16114 :-)