JsonData¶
SetFloatPrecision¶
void SetFloatPrecision(const double precision)
This will set this JsonData's floating point accuracy in digits.
The format is in literal decimals. Eg, a precision of two decimal places would be set as 0.01
.
precision
is clamped to 0 < precision <= 1
.
This value will be used for rendering floats and for comparing them via IsIdentical()
.
If none is set, it will either use the precision of its parent, or use JASONPP_FLOAT_PRECISION
.