parse static method

Decimal parse(
  1. String source
)

Parses source as a decimal literal and returns its value as Decimal.

Implementation

static Decimal parse(String source) => Rational.parse(source).toDecimal();