withPrecision method

double withPrecision(
  1. num value
)

Interprets the specified number according to this Precision.

Implementation

double withPrecision(final num value) =>
    double.parse(value.toStringAsPrecision(precision));