octave-maintainers
[Top][All Lists]
Advanced

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

Re: Directed rounding


From: John W. Eaton
Subject: Re: Directed rounding
Date: Thu, 17 Sep 2015 11:57:13 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0

On 09/17/2015 11:43 AM, Juan Pablo Carbajal wrote:
On Thu, Sep 17, 2015 at 4:47 PM, Eric Walter
<address@hidden> wrote:
Dear colleagues,

If this is not already the case, would you please consider making directed
rounding, as made available on all IEEE 747 compliant processors, simply
accessible to gnu-octave users? This would help assessing the number of
significant digits in the results of floatting-point computation.

Best regards,

Eric Walter


Dear Eric,

I might not get the point correctly, but are the functions round, fix,
floor, ceil, sign, chop not doing what you need?

Please file a feature request "bug" on the bug tracker.

If I understand correctly, you are asking to make the functions fegetround and fesetround available in Octave if they are supported by the system, correct?

It should not be too hard for you to write your own wrappers for those functions. I'd probably define them to accept/return strings like "nearest", "up", "down", "toward-zero" or similar.

If you do write your own, please consider contributing them.

Thanks,

jwe




reply via email to

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