Hello George,

Let me describe my use case first so that it's easier to clarify why
bigfloat or double-double don't work for me. The program I've been working
on requires emulation of arbitrary-precision *IEEE 754* floating-point
arithmetic (the maximum precision is double, for now) and easy/efficient
access to the bit representations of floating-point values. Therefore,
bigfloat is generally too slow just for my use case since I don't need so
much precision and it doesn't provide functions to access the bit
representations. Double-double is good enough to emulate the floating-point
arithmetic but I think it's also not trivial to access the bit
representations of the floating-point formats I want to emulate.

Quad-precision format fits my purpose nicely because it's sufficiently
precise to emulate all the floating-point formats I'm interested in and
obtaining the bit representations of these formats based on the bit
representations of quad-precision numbers is easy.

Shaobo

George Neuner <gneun...@comcast.net> 于2019年8月25日周日 上午10:28写道:

>
> On 8/23/2019 8:39 PM, Shaobo He wrote:
> > Hello everyone,
> >
> > I'm in need of quad-precision floating-point type/operations in Racket
> > (the bigfloat module doesn't work for me). It appears there's none, am
> > I right?
>
> The only hardware I am aware of with IEEE compatible quad precision is
> POWER9  (Vaxen had quad precision, but not IEEE compatible).  So on most
> platforms any implementation necessarily will be software: either an
> emulation of quad or double-double.
>
> Just out of curiosity, may I ask why bigfloat doesn't work for your
> purpose?  I know the range will be different between a quad and a
> bigfloat having the same precision, but that seems like it ought to be
> relatively easy to work around.
>
> George
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAMePyd_b_%2BHzk8hTRZ5SoJYnW1iAvL22Dh4tJ2438FsCzNYOVw%40mail.gmail.com.

Reply via email to