Next: , Previous: Currency, Up: Top


16 Database Command Syntax

unit definition
Define a regular unit.
prefix- definition
Define a prefix.
funcname(var) units=[in-units,out-units] domain=[x1,x2] range=[y1,y2] definition(var) ; inverse(funcname)
Define a nonlinear unit or unit function. The three optional keywords units=, range= and domain= can appear in any order. The definition of the inverse is optional.
tabname[out-units] pair-list
Define a piecewise linear unit. The pair list gives the points on the table listed in ascending order.
!endlocale
End a block of definitions beginning with ‘!locale
!endutf8
End a block of definitions begun with ‘!utf8
!endvar
End a block of definitions begun with ‘!var’ or ‘!varnot
!include file
Include the specified file.
!locale value
Load the following definitions only of the locale is set to value.
!message text
Display text when the database is read unless the quiet option (-q) is enabled.
!set variable value
Sets the environment variable, variable, to the specified value only if it is not already set.
!unitlist alias definition
Define a unit list alias.
!utf8
Load the following definitions only if units is running with UTF-8 enabled.
!var variable value-list
Load the following definitions only if the environment variable, variable is set to one of the values listed on the space separated value list. If variable is not set then units prints an error message and ignores the following definitions.
!varnot variable value-list
Load the following definitions only if the environment variable, variable is not set to one of the values listed on the space separated value list. If variable is not set then units prints an error message and ignores the following definitions.