NUMVAL: Difference between revisions

From iMath
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 17: Line 17:


This will output 35.
This will output 35.
|
4=
[[NUMVALWITH]] [[QUANTITY]] [[QUANTITYWITH]] [[VAL]] [[VALWITH]]
}}
}}
[[Category:Evaluation]]
[[Category:Evaluation]]

Revision as of 19:27, 26 June 2017

Syntax

NUMVAL (expression )


Implemented in iMath since version 2.2.0 or earlier.

Explanation

Try to find a purely numeric value for the given expression from any equations defined previously in the document. An error is produced if the expression does not evaluate to a number.

If any units are found in the result, a warning message will be logged and the units are removed.


Example

EQDEF a = 3 x

EQDEF b = 2 x

EQDEF x = 7

EXDEF NUMVAL(a + b)

This will output 35.

See also

NUMVALWITH QUANTITY QUANTITYWITH VAL VALWITH