float static method Null safety

DisplayMode float(
  1. int fractionDigits
)

digits after the decimal point. If digits is 10, always display in scientific notation, as per the 16C manual, page 56.

Implementation

static DisplayMode float(int fractionDigits) => (fractionDigits == 10)
    ? _FloatMode(const _Sci16FloatFormatter())
    : _FloatMode(_Fix16FloatFormatter(fractionDigits));