MCPcopy
hub / github.com/gopherjs/gopherjs / Float

Method Float

js/js.go:74–74  ·  view source on GitHub ↗

Float returns the object converted to float64 according to JavaScript type conversions (parseFloat).

()

Source from the content-addressed store, hash-verified

72
73// Float returns the object converted to float64 according to JavaScript type conversions (parseFloat).
74func (o *Object) Float() float64 { return o.object.Float() }
75
76// Interface returns the object converted to any. See table in package comment for details.
77func (o *Object) Interface() any { return o.object.Interface() }

Callers 2

TestFloatFunction · 0.45
TestIssue733Function · 0.45

Calls

no outgoing calls

Tested by 2

TestFloatFunction · 0.36
TestIssue733Function · 0.36