Quantity format
Quantity formats are a format string that specifies how a number is displayed.
Note:
The following table lists the formats you can use for quantities in Smile.- All quantity formats are case-sensitive.
- Enter a space before and after a format quantity code if you insert a quantity into a line with other data or text.
- If you insert a quantity format and the attribute is not populated, the string will appear blank.
Format | Effect |
---|---|
%D | Total days |
%H | Hours within the day |
%m | Minutes within the hour |
%s | Seconds within the minute |
%h | Total number of hours |
%M | Total minutes |
%S | Total seconds |
%G | GiB. Gibibyte. A GB using 1024 bytes as the basis. |
%U | MiB. Mebibyte A MB using 1024 bytes as the basis. |
%3 | kB. Kilobyte. Using 1000 bytes as the basis. |
%6 | MB. Megabyte. Using 1000 kilobytes as the basis. |
%9 | GB. Gigabyte. Using 1000 megabytes as the basis. |
%b | Number of bits with smart precision. Displays kB, MB, GB where appropriate, using 1000 bytes as the basis. |
%B | Number of bytes with smart precision. Using 1000 bytes as the basis. |
%i | Number of bytes with smart precision. Using 1024 bytes as the basis. |
%% | A percent sign |
%$ | The original number unformatted |
Format | Number | Result |
---|---|---|
%h:%m:%s | 123456 | 34:17:36 |
%D:%H:%m:%s | 123456 | 1:10:17:36 |
%S seconds | 123456 | 123456 seconds |
%B | 123456 | 123.46 kB |
%B | 12345678 | 12.35 MB |
%B | 1234567890 | 1.23 GB |
%i | 123456 | 120.56 KiB |
%i | 12345678 | 11.77 MiB |
%i | 1234567890 | 1.15 GiB |
%$%% | 123 | 123% |