Difference between revisions of "PREFIXDEF"

From iMath
Jump to: navigation, search
(Created page with "{{Keyword | 1= <code>PREFIXDEF { symbol = expression }</code> | 2= Defines a new unit prefix. The symbol is the name of the prefix, this must begin with a percent sign...")
 
 
Line 10: Line 10:
 
|
 
|
 
3=
 
3=
<code>PREFIXDEF{%milli = 10^{-3}}</code> lets iMath automatically recognize the unit <code>%millimetre</code>.
+
<code>PREFIXDEF{%milli = 10^{-3} }</code> lets iMath automatically recognize the unit <code>%millimetre</code>.
 +
|
 +
4=
 +
[[UNITDEF]]
 
}}
 
}}
 
[[Category:Definition]]
 
[[Category:Definition]]

Latest revision as of 19:32, 27 June 2017

Syntax

PREFIXDEF { symbol = expression }

Implemented in iMath since version 2.2.0 or earlier.

Explanation

Defines a new unit prefix. The symbol is the name of the prefix, this must begin with a percent sign % to distinguish it from a variable name. The expression defines the numeric value of the prefix.

Note that a file which defines SI prefixes comes with iMath and can be activated through the References dialog.

Example

PREFIXDEF{%milli = 10^{-3} } lets iMath automatically recognize the unit %millimetre.

See also

UNITDEF