|
Virus Wanderer
Joined: 29 Jun 2002 Posts: 69 Location: USA
|
Posted: Mon Jul 29, 2002 9:07 pm
float |
Ok, say I get a number by going #SH %eval(%float(100)/3). The number I get is 33.3333320617676. How do i limit it to just 33.33?
Richard Powell
Mux Alias: Virus
2796 Wizard Staff
64.89.10.1 port 2796
Rich@gigdev.com |
|
|
|
Charbal GURU
Joined: 15 Jun 2001 Posts: 654 Location: USA
|
Posted: Mon Jul 29, 2002 11:16 pm |
The %format command is what you want. It will allow you to specify how many digits you want after the decimal point:
#SH %format(2,%eval(%float(100)/3))
- Charbal |
|
|
|
|
|