Rounding & Truncating

Thanks Todd, that’s very helpful and interesting! Blockquote took out one of the backslashes before the “round” (there should be two) but when added that code is fine and is certainly much neater. I also tried using “floor” and “ceiling” in place of “round” but that gave me “NaN”?

Rounding to the nearest integer with the following code was also fine.

rounded_value=numericValue(“\\round(${value})”)

A full explanation of what is possible with this format would be useful? …especially if added to the documentation.

1 Like