Decimal128.fromDouble constructor

Decimal128.fromDouble(
  1. double value
)

Converts a double into a Decimal128.

Implementation

factory Decimal128.fromDouble(double value) {
  return Decimal128.parse(value.toString()); // TODO(kn): Find a way to optimize this
}