POV-Ray : Newsgroups : povray.beta-test : #write and float decimal places : Re: #write and float decimal places Server Time
29 Jul 2024 22:25:34 EDT (-0400)
  Re: #write and float decimal places  
From: Warp
Date: 1 Mar 2002 07:30:10
Message: <3c7f7451@news.povray.org>
Mark James Lewin <m_j### [at] yahoocomau> wrote:

> Any float I specify with longer than 6dp will be rounded to 6dp when str is used,

> #write(Output,str(I,0,-1),"\n") // written to file as 1.000000

  Use 15, not -1.

  (-1 is a system/compiler default, not a "print as many decimals as possible")

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

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