T
HE
M
ETA
-
HTML
L
ANGUAGE
R
EFERENCE
M
ANUAL
[
TOC
]
Create Documentation Section
Section Name:
Search Keywords:
Short Description:
<Meta-HTML> contains a small set of commands for operating on numerical quantities. All of the arithmetic operators described in this section can accept a number, or simply the name of a variable, which is then looked up as if it had been written with <example code><get-var-once ...></example>. That is to say: <example> <set-var total = <add <get-var-once subtotals[0]> <get-var-once subtotals[current]>>> </example> can be written as: <example> <set-var total = <add subtotals[0] subtotals[current]>> </example>
Long Description:
The binary arithmetic operators always expect two arguments, and will produce a warning message in
when given too few arguments. You can perform floating point arithmetic if one or both of the arguments is already a floating point number:
--> 3
--> 3.33
The
META-HTML
Reference Manual V2.0
Copyright © 1995, 1998,
Brian J. Fox
Found a bug? Send mail to
bug-manual@metahtml.org