POV-Ray : Newsgroups : povray.binaries.images : Self explanatory : Re: Self explanatory Server Time: 7 Jul 2008 15:06:45 GMT
  Re: Self explanatory  
From: alphaQuad
Date: 8 Apr 2008 15:45:01
-22d 48.33m
Dec: -21.81
??????????????????????


no one noticed?

First thought it was the round func, but doing this fixed it. (round() was not
used)
Floor rounds up?

#local dm = concat(str(floor(dec),0,0),"d ",
str(round(abs(mod(dec,1.0))*60,2),0,2),"m");


fix: floor(dec-mod(dec,1.0))

#local dm = concat(str(floor(dec-mod(dec,1.0)),0,0),"d ",
str(round(abs(mod(dec,1.0))*60,2),0,2),"m");


Not according to help:
floor(A) Floor of A. Returns the largest integer less than A. Rounds down to the
next lower integer.

Bizzare, but just proven, something perhaps to consider with use of floor().


Post a reply to this message

Copyright 1991-2004 POV-Team™