8000 minor #10633 Update percent.rst (ThomasLandauer) · symfony/symfony-docs@96ccb11 · GitHub
[go: up one dir, main page]

Skip to content

Commit 96ccb11

Browse files
committed
minor #10633 Update percent.rst (ThomasLandauer)
This PR was merged into the 2.8 branch. Discussion ---------- Update percent.rst Changed `.95` to `0.95` cause it's (a) better legible (cause it increases the contrast to `95`) and (b) formally correcter. Commits ------- 77ed801 Update percent.rst
2 parents cd64c71 + 77ed801 commit 96ccb11

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

reference/forms/types/percent.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ PercentType Field
55
=================
66

77
The ``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``),
99
you 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

@@ -60,14 +60,14 @@ type
6060
**type**: ``string`` **default**: ``fractional``
6161

6262
This controls how your data is stored on your object. For example, a percentage
63-
corresponding to "55%", might be stored as ``.55`` or ``55`` on your
63+
corresponding to "55%", might be stored as ``0.55`` or ``55`` on your
6464
object. The two "types" handle these two cases:
6565

6666
* ``fractional``
67-
If your data is stored as a decimal (e.g. ``.55``), use this type.
67+
If your data is stored as a decimal (e.g. ``0.55``), use this type.
6868
The data will be multiplied by ``100`` before being shown to the
6969
user (e.g. ``55``). The submitted data will be divided by ``100``
70-
on form submit so that the decimal value is stored (``.55``);
70+
on form submit so that the decimal value is stored (``0.55``);
7171

7272
* ``integer``
7373
If your data is stored as an integer (e.g. 55), then use this option.

0 commit comments

Comments
 (0)
0