diff options
Diffstat (limited to 'docs/manual.org')
-rw-r--r-- | docs/manual.org | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/manual.org b/docs/manual.org index 7e343aa..5b36ba7 100644 --- a/docs/manual.org +++ b/docs/manual.org @@ -94,6 +94,7 @@ You can also use the special setting names ~custom_unit_file~, ~custom_dimension A unit expression is simply a math expression where the values being operated on are units or numbers. The operations that can be used are (in order of precedence): - Exponentiation (^); the exponent must be an integer. Both units and numbers can be raised to an exponent - Multiplication (*) and division (/). Multiplication can also be done with a space (so "15 meter" is the same thing as "15 * meter"). + You can also divide with ~|~ to create fractions. Using ~|~ instead of ~/~ gives the division a higher precedence than any other operator. For example, "2|5^2" evaluates to 4/25, not 2/25. - Addition (+) and subtraction (-). They can only be done between units of the same dimension (measuring the same thing). So you can add metres, inches and feet together, and you can add joules and calories together, but you can't add metres to seconds, or feet to calories, or watts to pounds. Brackets can be used to manipulate the order of operations, and nonlinear units like Celsius and Fahrenheit cannot be used in expressions. You can use a value in a nonlinear unit by putting brackets after it - for example, degC(12) represents the value 12 \deg C |