isEqual1eX function

  1. @visibleForTesting
bool isEqual1eX(
  1. double value
)

Implementation

@visibleForTesting
bool isEqual1eX(double value) {
  final log10Value = log(value) / ln10;
  final exponent = log10Value.toInt();
  final calcularedV = double.parse(
      pow(10, log10Value.round()).toStringAsFixed(log10Value.round().abs()));
  return value == calcularedV && (exponent.abs() >= 2 && exponent.abs() <= 8);
}