POV-Ray : Newsgroups : povray.binaries.images : Self explanatory : Re: Self explanatory Server Time
1 Aug 2024 18:26:02 EDT (-0400)
  Re: Self explanatory  
From: alphaQuad
Date: 8 Apr 2008 11:45:01
Message: <web.47fb92bf115632e3970752e90@news.povray.org>
-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 2003-2023 Persistence of Vision Raytracer Pty. Ltd.