ID:178864
Mar 24 2002, 11:57 pm
|
|
I was wondering if there is anything like num2text() that sets how many zeros to display for a number? This would basically be used for something like a clock where you wouldn't want the width of it to change due to numbers being >= or < 10. I can compensate myself but I was just wondering if there was some built in feature for this sort of thing. This could also apply to decimal points like if you wanted to display a GPA and you want 4.0 to be displayed instead of just 4.
|
Copyright © 2025 BYOND Software.
All rights reserved.
Nope, there's no built-in proc for this, so you'll have to compensate yourself. In the case of a clock:
And for GPA:
Lummox JR