The function nf
is provided to format numbers according to specific criteria set as parameters in the :nf
category (see Parameters). There is precise control over the number of digits printed, how grids are printed, etc. To show all parameters available, evaluate (parameterhelp :nf)
; to get information about each one, (parameterhelp :nf
name)
.
Parameter  Values  Description


components  list of strings  Names of vector components to use when vectorformat is :coordinateunitvectors .

datetimeseparator  nil , t , character
 Character to place between date and time in ISO8601 datime output.
If nil, use a space, if T, use #\T.

degrees  boolean  Whether to format angles in degrees and angular rates in Hertz.

fracpartdigits  nil , fixnum
 The number of digits to the right of the decimal floating point numbers when :significantfigures is nil .

fullprecision  nil , t
 If not nil , ignore :fracpartdigits , :intpartdigits , :significantfigures , and format floating point numbers to full precision.

horizontalelementseparator  character  What to put between horizontally separated elements for plain style.

ignoredayonly  boolean  If true, a timepoint specified dayonly will show the time part as well.

intpartdigits  nil , fixnum
 The minimum space allowed for the wholenumber part of numbers
when :significantfigures is nil . If this is larger than
the actual number of digits, pad to the left with spaces.
If this value is nil , allow enough space to accomodate the number.

nounits  boolean  Don't print units if true.

printsign  boolean  Whether leading `+' is printed.

significantfigures  nil , fixnum
 The number of significant figures formatted for numbers.
If nil , formatting of numbers is done using :intpartdigits
and, if a float, :fracpartdigits.

style  nil , :tex , fixnum
 Style of format: plain (standard or shortened) or LaTeX.

texdecimalalign  boolean  Align columns of numbers on decimal point in LaTeX.

texelementseparator  string  Character to put between vertically separated matrix rows for LaTeX.

time  nil ,:tud ,:alternative
 How to format time intervals: with unit for time (nil ), ISO8601 timeunit designator (:tud ), ISO8601 alternative (:alternative ).

timepointlinear  symbol, list  Convert timepoints to a linear scale if specified as a list of epoch time and unit. For example '(*midnight2000* :year) will present time points as a real number of calendar years, including fractions, such as 3.3223. If the value is a symbol representing a unit, like :year, the epoch is taken as 0.

vectorformat  :horizontal , :vertical , :coordinateunitvectors
 Vectors are formatted as rows, columns or as linear combination of coordinate unit vectors.

verticalelementseparator  character  Character to put between vertically separated elements for plain.

Format output for numerical objects. If stream is nil, use *standardoutput*.
Returns two values: the string and printsaszero.