CStr$

combit List & Label Designer

combit List & Label

CStr$

Purpose:

Formats a number according to a format string. This is identical to the formatting information for the function printf() in the language C. The first parameter is a number of double precision, and the conversion operator can assume i.e. the following values: 'f', 'g', 'G', 'e', 'E'.

Parameter:

Number

String             format string in C-notation, i.e. '%<format>f'.

Return value:

String

Example:

CStr(Pi,"%5.1f")                            Result: "  3.1"

CStr(100*Pi,"num: %g")                 Result: "num: 3.141593e+02"