Skip to content
Permalink
Browse files

Replace bullet list by a table

  • Loading branch information...
jderusse committed Jun 24, 2014
1 parent 77a0687 commit 1e8fa48566091c10eb2ce40611e1909e6f73c9ba
Showing with 13 additions and 14 deletions.
  1. +13 −14 reference/constraints/File.rst
@@ -162,20 +162,19 @@ maxSize
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``);

* **kilobytes**: To specify the ``maxSize`` in kilobytes, pass a number and
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;

* **kibibytes**: To specify the ``maxSize`` in kibibytes, pass a number and
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 | Unit Name | value | e.g. |
+========+===========+=================+======+
| | byte | 1 byte | 4096 |
+--------+-----------+-----------------+------+
| k | kilobyte | 1,000 bytes | 200k |
+--------+-----------+-----------------+------+
| M | megabyte | 1,000,000 bytes | 2M |
+--------+-----------+-----------------+------+
| Ki | kibibyte | 1,024 bytes | 32Ki |
+--------+-----------+-----------------+------+
| Mi | mebibyte | 1,048,576 bytes | 8Mi |
+--------+-----------+-----------------+------+

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

0 comments on commit 1e8fa48

Please sign in to comment.
You can’t perform that action at this time.