POV-Ray : Newsgroups : povray.general : #write losing accuracy : Re: #write losing accuracy Server Time
6 Oct 2024 09:57:59 EDT (-0400)
  Re: #write losing accuracy  
From: Warp
Date: 16 Mar 2014 12:47:54
Message: <5325d5b9@news.povray.org>
Stephen <mca### [at] aolcom> wrote:
> On 16/03/2014 3:30 PM, FNH wrote:
> > I've just used #write to write a variable with the value 11.23302 to a file, but
> > when I open the resulting file it contains only 11.233 .
> >
> > Any ideas why that is?
> >
> >
> Did you define the BINARY_WORD_TYPE?

That will only write the integral part of the value as raw binary bytes.
It has nothing to do with the accuracy of the ascii representation of
floating point values.

-- 
                                                          - Warp


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.