MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime-go / F64

Method F64

val.go:139–144  ·  view source on GitHub ↗

F64 returns the underlying 64-bit float if this is an `f64`, or panics.

()

Source from the content-addressed store, hash-verified

137
138// F64 returns the underlying 64-bit float if this is an `f64`, or panics.
139func (v Val) F64() float64 {
140 if v.Kind() != KindF64 {
141 panic("not an f64")
142 }
143 return v.val.(float64)
144}
145
146// Funcref returns the underlying function if this is a `funcref`, or panics.
147//

Callers 2

TestFuncArgsFunction · 0.80
TestFuncWrapRet2Function · 0.80

Calls 1

KindMethod · 0.95

Tested by 2

TestFuncArgsFunction · 0.64
TestFuncWrapRet2Function · 0.64