MCPcopy Create free account
hub / github.com/devfeel/mapper / Float32

Method Float32

convert.go:40–43  ·  view source on GitHub ↗

Float32 string to float32

()

Source from the content-addressed store, hash-verified

38
39// Float32 string to float32
40func (f Convert) Float32() (float32, error) {
41 v, err := strconv.ParseFloat(f.String(), 32)
42 return float32(v), err
43}
44
45// Float64 string to float64
46func (f Convert) Float64() (float64, error) {

Callers

nothing calls this directly

Calls 1

StringMethod · 0.95

Tested by

no test coverage detected