Valuator.precision

void precision(int digits) nothrow @nogc

Sets the precision (number of decimal digits).

This is a convenience method that sets the step to 10^(-digits). For example, precision(2) sets step to 0.01.

Parameters

digitsNumber of decimal digits