Re: Identifying an exact binary representation
- From: glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx>
- Date: Sat, 03 Feb 2007 19:29:55 -0800
Bernhard Enders wrote:
(snip)
It would be nice to have the fp number as a string and then check if
it is possible to represent it exactly in binary, but maybe, for
simplicity, it is not necessary to represent it as a string, maybe it
is possible to investigate the actual binary representation to check
is it was rounded according to IEEE-754 standard or something. I was
primary thinking of some logical function such that isExact(0.25)
returns true and isExact(0.1) returns false. Thanks,
I think that would be isExact('0.25') and isExact('0.1')
On machines with float decimal arithmetic it should return the
appropriate value for that?
-- glen
.
- Follow-Ups:
- Re: Identifying an exact binary representation
- From: Richard Maine
- Re: Identifying an exact binary representation
- References:
- Identifying an exact binary representation
- From: Bernhard Enders
- Re: Identifying an exact binary representation
- From: Richard Maine
- Re: Identifying an exact binary representation
- From: Bernhard Enders
- Identifying an exact binary representation
- Prev by Date: Re: Identifying an exact binary representation
- Next by Date: Re: Identifying an exact binary representation
- Previous by thread: Re: Identifying an exact binary representation
- Next by thread: Re: Identifying an exact binary representation
- Index(es):
Relevant Pages
|