From: Tung Vu Xuan <toilatung90@gmail.com>
To: Xavier Leroy <Xavier.Leroy@inria.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Approximations when converting from string to float
Date: Wed, 26 Oct 2016 11:38:52 +0200 [thread overview]
Message-ID: <CAFxmOcQTuOju6zyAR5DXRH86_wrBmC64sHP6Jc5ZM40UCsKs_w@mail.gmail.com> (raw)
In-Reply-To: <6ed7708d-1e70-7072-f537-dbe305da3b09@inria.fr>
[-- Attachment #1: Type: text/plain, Size: 436 bytes --]
Hi Xavier,
> But probably you don't need
> the interval arithmetic in the end: both "top" and "top + 1" convert
> to floats without rounding (*),
Yes, you're right :).
> and the scaling by 2^n can be achieved
> with "ldexp".
>
What is the semantics of "ldexp" in bounds cases? For example, I tried
"ldexp max_float max_int;;" which returns "8.98846567431157854e+307".
Shouldn't we expect something like "infinity"?
Best,
Tung.
[-- Attachment #2: Type: text/html, Size: 1167 bytes --]
next prev parent reply other threads:[~2016-10-26 9:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-24 14:01 Tung Vu Xuan
2016-10-25 10:21 ` Jacques-Henri Jourdan
2016-10-25 11:20 ` Soegtrop, Michael
2016-10-25 11:24 ` Soegtrop, Michael
2016-10-25 14:19 ` Jacques-Henri Jourdan
2016-10-25 15:28 ` Soegtrop, Michael
2016-10-25 16:58 ` Tung Vu Xuan
2016-10-25 17:04 ` Jacques-Henri Jourdan
2016-10-25 18:07 ` Xavier Leroy
2016-10-26 9:38 ` Tung Vu Xuan [this message]
2016-10-26 8:08 ` Soegtrop, Michael
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFxmOcQTuOju6zyAR5DXRH86_wrBmC64sHP6Jc5ZM40UCsKs_w@mail.gmail.com \
--to=toilatung90@gmail.com \
--cc=Xavier.Leroy@inria.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox