POV-Ray : Newsgroups : povray.beta-test : Command-line declare seems limited to 6 significant figures : Re: Command-line declare seems limited to 6 significant figures Server Time
17 May 2024 07:53:57 EDT (-0400)
  Re: Command-line declare seems limited to 6 significant figures  
From: Cousin Ricky
Date: 1 Aug 2012 22:55:01
Message: <web.5019eb3fb6f0659d85de7b680@news.povray.org>
"Cousin Ricky" <rickysttATyahooDOTcom> wrote:
> When I use declare= on the command line or in a .ini file, only 6 significant
> figures get passed in.
>   _________________________________________________
>
>   #version 3.7;
>   #ifndef (Input) #declare Input = 12345.6789; #end
>   #debug concat (str(Input,0,4), "\n")
>   _________________________________________________
>
> Rendering this scene file with no parameters prints 12345.6789 as expected.  But
> rendering it with the command line option
>
>   declare=Input=12345.6789
>
> yields 12345.7000.  (POV-Ray 3.6.1 prints all 9 digits.)
>
> POV-Ray version: 3.7.RC6
> Operating system: openSUSE Linux 12.1

POV-Ray 3.6.1 isn't perfect either.  The option declare=Input=123456789 yields
123456792.0000.


Post a reply to this message

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