Absolute value

absMicronode

The magnitude of a number, with any sign dropped. Folded at compile time: the result is spliced into the surrounding text as characters, so no node reaches the renderer and the number cannot be re-formatted, animated or bound to afterwards.

Explained in:Value primitives

#Allowed content

Body { }A number

#Examples

!abs{-4.5}

#Notes

  • !abs{-4.5} folds to 4.5.