MCPcopy
hub / github.com/dropbox/godropbox / IsNumeric

Method IsNumeric

database/sqltypes/sqltypes.go:174–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

172}
173
174func (v Value) IsNumeric() (ok bool) {
175 _ = Numeric(nil) // compiler bug work-around
176 if v.Inner != nil {
177 _, ok = v.Inner.(Numeric)
178 }
179 return ok
180}
181
182func (v Value) IsFractional() (ok bool) {
183 _ = Fractional(nil) // compiler bug work-around

Callers 2

TestBuildValueMethod · 0.80
TestBuildValuePointerMethod · 0.80

Calls 1

NumericTypeAlias · 0.85

Tested by 2

TestBuildValueMethod · 0.64
TestBuildValuePointerMethod · 0.64