IsNumeric returns true iff this type is an integer, float, or decimal.
()
| 2332 | |
| 2333 | // IsNumeric returns true iff this type is an integer, float, or decimal. |
| 2334 | func (t *T) IsNumeric() bool { |
| 2335 | switch t.Family() { |
| 2336 | case IntFamily, FloatFamily, DecimalFamily: |
| 2337 | return true |
| 2338 | default: |
| 2339 | return false |
| 2340 | } |
| 2341 | } |
| 2342 | |
| 2343 | // EnumGetIdxOfPhysical returns the index within the TypeMeta's slice of |
| 2344 | // enum physical representations that matches the input byte slice. |