Skip to content

Logarithms ​

These instructions evaluate scalar logarithmic functions.

OpcodeArgumentsOperands (stack)Description
lntypevalueReplaces one operand with its natural logarithm; type must be hlf, flt, or dbl.
log2typevalueReplaces one operand with its base-2 logarithm; type must be hlf, flt, or dbl.
log10typevalueReplaces one operand with its base-10 logarithm; type must be hlf, flt, or dbl.