Legal Information
PC Knowledge Base - Format Number to a String

Good Knowledge Is Good2Use

The following code converts a number to its string representation and inserts it into a string.
In the following example, min is minutes and sec seconds. The result will a string of the form

mins:secs.
The (min,0) means that there is no decimal place. In order to have a number of decimal places replace 0 with the number of decimal places required.
s = s + " " + FormatNumber(min, 0) + ":" + FormatNumber(sec, 0)



Search Knowledge Base Feedback
If you like our web site refer a friend.
Your friends name.
Your friends email address.
Your Name
Your Email Address


© Copyright 1998-1999 GOOD2USE