MCPcopy Create free account
hub / github.com/goplus/py / newFloat

Function newFloat

float.go:17–19  ·  view source on GitHub ↗
(obj *C.PyObject)

Source from the content-addressed store, hash-verified

15var FloatType = (*Type)(unsafe.Pointer(&C.PyFloat_Type))
16
17func newFloat(obj *C.PyObject) *Float {
18 return (*Float)(unsafe.Pointer(obj))
19}
20
21func NewFloat(i float64) *Float {
22 return newFloat(C.PyFloat_FromDouble(C.double(i)))

Callers 3

NewFloatFunction · 0.85
AsFloatFunction · 0.85
NewFloatFromStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…