in reply to Re: Re: Rounding to the nearest 50
in thread Rounding to the nearest 50

You're right. He must have another definition of 'nearest' than I have.

Abigail

Replies are listed 'Best First'.
Re: Re: Rounding to the nearest 50
by Hammy (Scribe) on Mar 02, 2004 at 01:41 UTC
    Thank you all very much. I am dealing with currency (0 - 10000000). I am sure something in this post will set me straight. Thank you all again very much.
Re: Re: Rounding to the nearest 50
by Crian (Curate) on Mar 01, 2004 at 22:55 UTC
    Yes, I agree. I wrote him in my answer above, that he is not looking for the nearest value (or that, what I would tell the nearest).
      You are all correct, I left out a minor piece. I am rounding to the neared number equally divisible by 50 without having to round down. Always round up.
Re: Re: Rounding to the nearest 50
by Roy Johnson (Monsignor) on Mar 01, 2004 at 19:09 UTC
    Perhaps he really meant "nearest 100" but jumbled that with the notion that anything within 50 would round to it.

    The PerlMonk tr/// Advocate