Floor

floorMicronode

Rounds a number down to the previous whole number. 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

!floor{3.8}

#Notes

  • !floor{3.8} folds to 3; !floor{-3.2} to -4.