import NumberField from './NumberField'; /** * A field to store floating point values * * This class accepts all the props of [NumberField](doc:NumberField). * * * Use with [viewModelFactory](doc:viewModelFactory). * * ```js * viewModelFactory({ * id: new Field(), * total: new FloatField(), * }, { pkFieldName: 'id' }); * ``` * * Optionally provide `minValue`, `maxValue` or any options from [Field](doc:Field): * * ```js * viewModelFactory({ * id: new Field(), * total: new CharField({ * minValue: 0, * }), * }, { pkFieldName: 'id' }); * ``` * * * This field stores the value as a [number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number). If * you need arbitrary precision use [DecimalField](doc:DecimalField) * * * * @extractdocs * @menugroup Fields */ export default class FloatField extends NumberField { static fieldClassName: string; private _parseValue; parse(value: any): number | null; normalize(value: string | number): number | null; }