Welcome to the Monastery | |
PerlMonks |
Re^5: Calculating base difference of numbersby ikegami (Patriarch) |
on Jun 01, 2008 at 03:01 UTC ( [id://689491]=note: print w/replies, xml ) | Need Help?? |
So you want .0001 of the magnitude of some number. That wasn't specified and different than what you agreed to. Well, you have to start by finding the magnitude of the number. The amount by which you'll multiply is based on the magnitude.
You haven't defined what you want to happen when the number are of different magnitude.
Another edge case is an input of zero. You haven't defined when you want to happen in that circumstance either.
In Section
Seekers of Perl Wisdom
|
|