MCPcopy
hub / github.com/flosch/pongo2 / IsFloat

Method IsFloat

value.go:55–58  ·  view source on GitHub ↗

IsFloat checks whether the underlying value is a float

()

Source from the content-addressed store, hash-verified

53
54// IsFloat checks whether the underlying value is a float
55func (v *Value) IsFloat() bool {
56 return v.getResolvedValue().Kind() == reflect.Float32 ||
57 v.getResolvedValue().Kind() == reflect.Float64
58}
59
60// IsInteger checks whether the underlying value is an integer
61func (v *Value) IsInteger() bool {

Callers 7

IsNumberMethod · 0.95
LessMethod · 0.95
LessMethod · 0.80
EvaluateMethod · 0.80
EvaluateMethod · 0.80
EvaluateMethod · 0.80
filterAddFunction · 0.80

Calls 1

getResolvedValueMethod · 0.95

Tested by

no test coverage detected