py_castfloat method

bool py_castfloat(
  1. py_Ref arg0,
  2. Pointer<py_f64> out
)

Cast a int or float object in python to double. If successful, return true and set the value to out. Otherwise, return false and raise TypeError.

Implementation

bool py_castfloat(
  py_Ref arg0,
  ffi.Pointer<py_f64> out,
) {
  return _py_castfloat(
    arg0,
    out,
  );
}