calca

Open full view…

Precision / Format to Specific Number of Digits?

briankb
Sat, 04 Jun 2016 15:47:22 GMT

I see truncate which will remove all digits but I want to choose how many digits past the decimal point. I was surprised to see round actually rounded not to the precision of the result but all the way up to integer.

publicusernamewithpassword
Mon, 06 Feb 2017 07:40:39 GMT

its in the documentation. use any of the following decorations: @p, @prec, @precision @precision=3 x = 3.14159 => 3.142