Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
manual:chapter3:units [2018/10/25 09:34] claudio |
manual:chapter3:units [2018/10/25 10:17] claudio [Operating with Units] |
||
---|---|---|---|
Line 28: | Line 28: | ||
Results of an addition or subtraction between consistent units will produce a result with the units of the first argument (argument in level 2 of the stack at the time of the operation, or the left argument in an algebraic expression). | Results of an addition or subtraction between consistent units will produce a result with the units of the first argument (argument in level 2 of the stack at the time of the operation, or the left argument in an algebraic expression). | ||
+ | |||
+ | Unit conversions can be performed directly using the '' | ||
+ | |||
+ | To reduce a unit to its base components, use the command '' | ||
+ | |||
+ | To extract the value part of a unit object, use the '' | ||
+ | ==== Custom Units ==== | ||
+ | |||
+ | Units in newRPL can be arbitrary symbols, not just the ones predefined in the system. For example, adding '' | ||
+ | |||
+ | Custom units can also be defined as derived units, in terms of other base units. This is done with the '' | ||
+ | |||
+ | New units can also be defined in terms of new (unknown) base units. For example typing '' | ||
+ | From that moment the addition '' | ||
+ | |||
+ | Custom units work systemwide, the command '' | ||
+ | |||
+ | |||
+ | ==== Available Units ==== | ||
This is a list of the units available in the '' | This is a list of the units available in the '' |