POV-Ray : Newsgroups : povray.general : #write losing accuracy : Re: #write losing accuracy Server Time
6 Oct 2024 09:52:18 EDT (-0400)
  Re: #write losing accuracy  
From: Alain
Date: 16 Mar 2014 16:57:58
Message: <53261056$1@news.povray.org>

> 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?
>
>
Just make sure that you actualy write up to 5 decimal places if you 
want/need 5 decimal places. Take a look at the str(A,L,P) function. make 
sure that P is at least 5.


Post a reply to this message

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