|
From: | anonymous |
Subject: | [Octave-bug-tracker] [bug #61290] Unexpected rounding of min and max with integer types |
Date: | Tue, 5 Oct 2021 15:29:51 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0 |
Follow-up Comment #2, bug #61290 (project octave): The unexpected rounding behavior for integers also goes to floor and ceil, not just min and max. Please examine this: >> floor (uint64(1) / 2) ans = 1 >> floor (uint64(1) / uint64(2)) ans = 1 This causes the following loop to never terminate: foo = uint64(10); while (foo > 0) foo = floor (foo/2) end _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?61290> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |