Skip to content

Commit

Permalink
Use comma as thousands separator
Browse files Browse the repository at this point in the history
  • Loading branch information
Jérémy Derussé committed Jun 24, 2014
1 parent 7dcd7c3 commit b414f5c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions reference/constraints/File.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ below a certain file size and a valid PDF, add the following:
mimeTypes: [application/pdf, application/x-pdf]
mimeTypesMessage: Please upload a valid PDF
.. code-block:: php-annotations
// src/Acme/BlogBundle/Entity/Author.php
Expand Down Expand Up @@ -161,19 +160,19 @@ If set, the size of the underlying file must be below this file size in order
to be valid. The size of the file can be given in one of the following formats:

* **bytes**: To specify the ``maxSize`` in bytes, pass a value that is entirely
numeric (e.g. ``4096``).
numeric (e.g. ``4096``);

* **kilobytes**: To specify the ``maxSize`` in kilobytes, pass a number and
suffix it with a "k" (e.g. ``200k``); 1k = 1 000 bytes.
suffix it with a "k" (e.g. ``200k``); 1k = 1,000 bytes;

* **megabytes**: To specify the ``maxSize`` in megabytes, pass a number and
suffix it with a "M" (e.g. ``4M``); 1M = 1 000 000 bytes.
suffix it with a "M" (e.g. ``4M``); 1M = 1,000,000 bytes;

* **kibibytes**: To specify the ``maxSize`` in kibibytes, pass a number and
suffix it with a "Ki" (e.g. ``600Ki``); 1Ki = 1 024 bytes.
suffix it with a "Ki" (e.g. ``600Ki``); 1Ki = 1,024 bytes;

* **mebibytes**: To specify the ``maxSize`` in mebibytes, pass a number and
suffix it with a "Mi" (e.g. ``8Mi``); 1Mi = 1 048 576 bytes.
suffix it with a "Mi" (e.g. ``8Mi``); 1Mi = 1,048,576 bytes.

For more information about the difference between binary and SI suffixes,
see `Wikipedia: Binary prefix`_.
Expand Down

0 comments on commit b414f5c

Please sign in to comment.