Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Everything E3D

MULTIPLY and DIVIDE (* and /)

  • Last UpdatedMar 20, 2026
  • 1 minute read

The multiply and divide functions available are:

Synopsis

number * number

-> number

number / number

-> number

Description

Multiply or divide two numbers. They can also be used as unary operators at the beginning of a parenthesized sub-expression. Numeric underflow is not considered to be an error and neither is it flagged as a warning. The result returned is zero.

Side Effects

Units are consolidated across Multiply and Divide. The result is returned in the current units of the physical quantity of the result for example when current units of pressure are psi then:

q (20kgf/ 1 cm2 ) will return 284.47PSI

If one value has no unit it is assumed to be a scaling factor. This also applies to reciprocal physical quantities. For example:

(10 / XLEN) will return 2mm-1 when XLEN is 5mm.

Example

2 * 3 -> 6.0

2 / 3 -> 0.666666666

Errors

Divide by zero.