The Number Field allows you to give a display format to numbers being these strings, ints or floats. For example with the format 1,.2 you may transform a "2,3324120424..." number in the database to a more user friendly display like "2,33".
Parameter | Type | Default | Required | Description |
---|---|---|---|---|
format | str | '1,.2' | False | Format for the field. |
join | str | '| ' | False | Join separator. |
Parameter | Type | Default | Required | Description |
---|---|---|---|---|
type | DynamicFieldType | NUMBER | True | Type of the dynamic field. |
NumberField(label='Popularity', field='metadata.popularity', format='1.2')