toDouble method

double toDouble()

Implementation

double toDouble() {
  if (this is Numeral) {
    return (this as Numeral).toDouble();
  } else {
    throw ArgumentError('cant be converted to double: $this');
  }
}