MCPcopy Create free account
hub / github.com/deuill/go-php / Float

Method Float

engine/value.go:204–206  ·  view source on GitHub ↗

Float returns the internal PHP value as a floating point number, converting if necessary.

()

Source from the content-addressed store, hash-verified

202// Float returns the internal PHP value as a floating point number, converting
203// if necessary.
204func (v *Value) Float() float64 {
205 return (float64)(C.value_get_double(v.value))
206}
207
208// Bool returns the internal PHP value as a boolean, converting if necessary.
209func (v *Value) Bool() bool {

Callers 3

InterfaceMethod · 0.95
TestValueFloatFunction · 0.95
NewValueFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestValueFloatFunction · 0.76