Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
RE: Answer: How do i round a generated number in Perl? ...math.round (as in javascript) ...?by lhoward (Vicar) |
on Jul 26, 2000 at 00:27 UTC ( [id://24344]=note: print w/replies, xml ) | Need Help?? |
This concept presented above can be expanded to round to more (or less)
percision than just "round number to nearest integer".
i.e. Round to nearest hundred (100): Round to nearst tenth (0.1): etc...
In Section
Seekers of Perl Wisdom
|
|