Round off numers
Posted: March 31st, 2005, 1:42 pm
I would like a plugin to round off numbers.
For example:
I get (from a variabele) 5.34178930789
I want it to show 5.34
(or 5.432)
I use this one:
I would like to round off that number with something like:
where # is the number of decimals and function is the number you want to round.
in my case this will be:
Please note (if you are going to make a plugin) it should round off correctly
Example (from 3 decimals to 2 decimals):
3.133 will be 3.13
3.135 will be 3.14
Thanx if anyone wants to make this one!

For example:
I get (from a variabele) 5.34178930789
I want it to show 5.34
(or 5.432)
I use this one:
Code: Select all
$Rss(http://stats.wilc0.com/whizz.php,d,7)%
Code: Select all
$Dll(round,#,function)
in my case this will be:
Code: Select all
$Dll(round,#,$Rss(http://stats.wilc0.com/whizz.php,d,7)%)
Example (from 3 decimals to 2 decimals):
3.133 will be 3.13
3.135 will be 3.14
Thanx if anyone wants to make this one!
