|
|
-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
|
|