|
![](/i/fill.gif) |
Warp <war### [at] tag povray org> wrote:
> 12 yes, but are you sure 0.3 can be converted from double to float without
> losing precision? (Not that it really matters with literals, though...)
Answering my own question, the bit pattern for 0.3 is:
0 01111111101 0011001100110011001100110011001100110011001100110011
(see http://en.wikipedia.org/wiki/Double_precision_floating-point_format
for the meaning.)
This makes be believe that 0.3 is actually not accurately representable
with base-2 floating point numbers, and hence converting from double to
float does lose precision, technically speaking.
--
- Warp
Post a reply to this message
|
![](/i/fill.gif) |