FormatNum

Prev Next Home Home Table Of Contents Index

FormatNum (Real,Format) : String

Form converts a real number to a string in a specific format which is controlled by a format string. The characters of the string control the decimal places, size of the string, and money signs.


 #  A digit position, blank if not available.
 *  A digit position, fill with asterisk if not available.
 @  A digit position, fill with zero if not available.
 $  A digit position, activating a floating dollar sign.
 -  A sign position, needed if * or @ digits used exclusively.
 +  A sign position, shows '+' for positive numbers as well.
 ,  A decimal comma or a separator comma.
 .  A decimal period or a separator period.

Example:
Writeln FormatNum(Pi,'#.#####') ;returns 3.14159

Category: Float String

Prev Next Home Home Table Of Contents Index

Sponsors
Shopping
Forum
Forum
email
EMail
Index
Index
Home
Home