XP is just a number | |
PerlMonks |
Re: Re: Rounding values upwards on an arbitrary basisby Thelonius (Priest) |
on Jul 02, 2003 at 21:03 UTC ( [id://270955]=note: print w/replies, xml ) | Need Help?? |
Well, the bizarre thing about this problem is that the function ibanix described is not idempotent. E.g.
f(124)=125 but f(f(124))=150. So it shouldn't really be called a "rounding" function. I don't know if that's really what he wanted, but it is what he asked for.
Abigail's function is more reasonable, but not what ibanix asked for.
In Section
Seekers of Perl Wisdom
|
|