HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Q: Conversion: Convert Real To Formatted String?

01-04-2004, 11:41 PM#1
Fiery_Maelstrom
Ok, in the above function call, It lets you enter...

String(Real, Integer, Integer)

I want to use this trigger, but I don't know what the last two integers should be.

The Real I will be converting can be anywhere from two digits (no decimals) to three digits (no decimal).

What integer can I put in to make it so no decimal appears and that it works for both types of numbers?

-Fiery
01-04-2004, 11:55 PM#2
Extrarius
The first number is how many digits to display minimum (counting digits before and after the decimal place together). If it would be less, it will put one space for each digit less.
The second number is the number of digits to display after the decimal point.
01-05-2004, 12:13 AM#3
Fiery_Maelstrom
So if I wanted it to work for 23 and 233.. I would put... 2 as the first one and 0 as the second?

-Fiery