|
|
"alphaQuad" <alp### [at] earthlinknet> wrote:
> -22d 48.33m
> Dec: -21.81
> Floor rounds up?
> fix: floor(dec-mod(dec,1.0))
> floor(A) Floor of A. Returns the largest integer less than A. Rounds down to the
> next lower integer.
Including down for negative numbers then,
Modulus gives a negative remainder and adds it, for same as positive value.
My round function rounds up for negative values and down for positive,
but floor rounds down for negative numbers it seems to me. So no floor does NOT
round up in ANY case, heh.
Just thought that was needed, since no one noticed.
Nuthin worse than expecting greatness and getting, WTH?
The word round should be nowhere near the floor description. It should be just
the integer, pos or neg, IMO.
Another logic hurdle melts.
abs(negative) must equal positive. where floor() can get in the way of such
logic.
Post a reply to this message
|
|