next up previous contents index
Next: FRAC Up: A Function Reference Previous: FORECAST

FORMAT

 

Syntax: @FORMAT(F, N, X)

F = the NExS format code
N = the precision level, from 0 to 15
X = a numeric value

@FORMAT returns the string formed by formatting the numeric value X using the NExS format code F and the precision specified by N. For a list of valid formats see Table 4.1.

Examples:

@FORMAT(``dollars'', 2, 660406) = ``$660,406.00''

@FORMAT(``hex'', 0, 660406) = ``OxA13B6''

@FORMAT(``general'', 2, 660406) = ``6.6e+05''


next up previous contents index
Next: FRAC Up: A Function Reference Previous: FORECAST

NExS User's Guide, Version 1.4.5
Grey Trout Software
11 April 1999