asDouble property

double asDouble

Converts a python double to a dart double

Implementation

double get asDouble {
  final res = dartpyc.PyFloat_AsDouble(this);
  if (!pyErrOccurred()) {
    dartpyc.Py_DecRef(this);
    return res;
  }
  throw DartPyException('Error in converting to a dart double');
}