toPrecision method

double toPrecision(
  1. int n
)

Implementation

double toPrecision(int n) => double.parse(toStringAsFixed(n));