Contents - Index


Str (function)

Str(nNumber,nLength,Ndecimals ) : string

Converts a number into a right justified string with decimals digits following the decimal point.  The total length of the string is defined by the length parameter. 
Str(45,5,2) = 45.00

If  Ndecimals is less than the precision of the actual number, rounding is performed.

Str(45.6,2,0) = 46

To remove leading spaces, use the AllTrim function. Also see the NumToStr function and the complimentary Val function

Alpha List         Category List