File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ PercentType Field
55=================
66
77The ``PercentType `` renders an input text field and specializes in handling
8- percentage data. If your percentage data is stored as a decimal (e.g. ``.95 ``),
8+ percentage data. If your percentage data is stored as a decimal (e.g. ``0 .95 ``),
99you can use this field out-of-the-box. If you store your data as a number
1010(e.g. ``95 ``), you should set the ``type `` option to ``integer ``.
1111
5555**type **: ``string `` **default **: ``fractional ``
5656
5757This controls how your data is stored on your object. For example, a percentage
58- corresponding to "55%", might be stored as ``.55 `` or ``55 `` on your
58+ corresponding to "55%", might be stored as ``0 .55 `` or ``55 `` on your
5959object. The two "types" handle these two cases:
6060
6161* ``fractional ``
62- If your data is stored as a decimal (e.g. ``.55 ``), use this type.
62+ If your data is stored as a decimal (e.g. ``0 .55 ``), use this type.
6363 The data will be multiplied by ``100 `` before being shown to the
6464 user (e.g. ``55 ``). The submitted data will be divided by ``100 ``
65- on form submit so that the decimal value is stored (``.55 ``);
65+ on form submit so that the decimal value is stored (``0 .55 ``);
6666
6767* ``integer ``
6868 If your data is stored as an integer (e.g. 55), then use this option.
You can’t perform that action at this time.
0 commit comments