POV-Ray : Newsgroups : povray.general : #write losing accuracy : Re: #write losing accuracy Server Time
6 Oct 2024 09:53:12 EDT (-0400)
  Re: #write losing accuracy  
From: Kenneth
Date: 18 Mar 2014 05:10:01
Message: <web.53280c883187bc37c2d977c20@news.povray.org>
"Kenneth" <kdw### [at] gmailcom> wrote:
> "Kenneth" <kdw### [at] gmailcom> wrote:
>
> >
> > Like this:
> > #write(XYZ,str(500 + rand(R),0,12)
> > ..... which writes 500.943482920049 -- 12 actual decimal places.
> >
>
> DAMN, I left off the final parenthesis there (even after double-checking my
> syntax!!) Sorry! (It will cause POV-Ray to hard-crash... mea culpa...)
>

Hmm, it actually doesn't crash, it just causes a fatal error.

(This *does* cause a crash:   #write(XYZ,500 + rand(R) // no final parenthesis


Post a reply to this message

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