POV-Ray : Newsgroups : povray.general : Outputting raw pixel data? : Re: Outputting raw pixel data? Server Time
1 Aug 2024 22:16:46 EDT (-0400)
  Re: Outputting raw pixel data?  
From: Warp
Date: 31 Mar 2005 09:00:40
Message: <424c0288@news.povray.org>
Le Forgeron <jgr### [at] freefr> wrote:
> PS: printf usually as an issue with double precision, do not expect all
> the digits!

  printf has no issues with double precision. It's just a question of
specifying the proper parameters.

    double d = 1.234567890123456789;
    printf("%.15f\n", d);

prints:

1.234567890123457

  And by the way, color values are calculated using single precision
floating points in povray.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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