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

Function NewFloatFromString

float.go:32–35  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

30}
31
32func NewFloatFromString(s string) *Float {
33 cs := NewString(s)
34 return newFloat(C.PyFloat_FromString((*C.PyObject)(unsafe.Pointer(cs.Obj())), nil))
35}
36
37func (f *Float) Float() float64 {
38 return float64(C.PyFloat_AsDouble(f.c()))

Callers

nothing calls this directly

Calls 3

NewStringFunction · 0.85
newFloatFunction · 0.85
ObjMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…