chicken-janitors
[Top][All Lists]
Advanced

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

Re: #1814: OS X / PowerPC failing test: remainder return -0.0


From: Chicken Trac
Subject: Re: #1814: OS X / PowerPC failing test: remainder return -0.0
Date: Mon, 06 Feb 2023 08:09:20 -0000

#1814: OS X / PowerPC failing test: remainder return -0.0
----------------------------------------+-----------------------
            Reporter:  cellularmitosis  |      Owner:  (none)
                Type:  defect           |     Status:  new
            Priority:  minor            |  Milestone:  someday
           Component:  unknown          |    Version:  5.3.0
          Resolution:                   |   Keywords:  remainder
Estimated difficulty:                   |
----------------------------------------+-----------------------

Comment (by sjamaan):

 It shouldn't cause a problem in practice, I think. For dividing flonums we
 rely on the libc {{{modf()}}} function which is according to the standard
 is supposed to return the same sign as its input.

 Perhaps you can test in a simple C function what {{{modf(1.0, &x)}}}
 returns and what it stores in {{{x}}}?

-- 
Ticket URL: <https://bugs.call-cc.org/ticket/1814#comment:2>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

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