gnuastro-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #61969] Incorrect output for integer calculations


From: Pedram Ashofteh Ardakani
Subject: [bug #61969] Incorrect output for integer calculations
Date: Tue, 1 Feb 2022 00:42:45 -0500 (EST)

URL:
  <https://savannah.gnu.org/bugs/?61969>

                 Summary: Incorrect output for integer calculations
                 Project: GNU Astronomy Utilities
            Submitted by: pedram
            Submitted on: Tue 01 Feb 2022 05:42:43 AM UTC
                Category: Arithmetic
                Severity: 3 - Normal
              Item Group: Output not reasonable
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

== problem ==
Incorrect output for a combination of multiplication, subtraction and addition
when using *integers*, but it works fine with *float*.

== steps to reproduce ==
++
$ astarithmetic 51 1 - 21 x 1 + 1 -
26
Arithmetic finished in 0.000321 seconds

$ astarithmetic 51. 1 - 21 x 1 + 1 -
1050
Arithmetic finished in 0.000276 seconds
--






    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61969>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]