Utility functions

Rosebox provides built-in arithmetic functions for some types like Length and Duration:

mult(px(300), 3) -> '900px'
add(px(100), px(500)) -> '600px'
mult(ms(250), 3) -> '750ms'

It also provides an equality function:

eq(px(600), px(600)) -> true
eq(ms(500), ms(400)) -> false
Info

Check out the Utility functions section to find out more.