leastSignificantDigit method Null safety

  1. @override
int leastSignificantDigit(
  1. double value
)
override

Gives the least significant digit when value is displayed, where the units digit is 0, and negative is to the right of the decimal. For example, for FIX-3, gives -3 (10^-3 is 0.001), unless the value is such that scientific notation would be used.

This is needed for the HP 15C's integrate function.

Implementation

@override
int leastSignificantDigit(double value) => 1;