Template:Bytes
Jump to navigation
Jump to search
4,000 GB (4,194,304,000 KB)
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
| Multiple-byte units | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Orders of magnitude of data | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Usage
[edit source]Convert between multiple-byte units.
| Parameter | Usage |
|---|---|
1 |
The value to convert |
2 |
The unit prefix for the provided value. One of SI or IEC prefixes. |
3 |
The unit prefix to convert into. |
4 |
Significant digits after decimal dot or, if negative, exponent of ten. |
d |
Decimal mode. If set, prefixes will based on powers of 10 instead of 2. Automatically set if IEC prefix is used. |
link |
Add link to provided unit. |
fmt |
fmt parameter for internal {{val}}. Default: commas
|
Examples
[edit source]| Code | Result |
|---|---|
{{Bytes|64|K}} |
64 KB (65,536 bytes) |
{{Bytes|64|K|d=1}} |
64 KB (64,000 bytes) |
{{Bytes|1000000||M|3}} |
1,000,000 bytes (0.9537 MB) |
{{Bytes|1|Gi|G|3|link=gibibyte}} |
1 GiB (1.074 GB) |
{{Bytes|1|T|Gi|3}} |
1 TB (931.323 GiB) |
{{Bytes|1000000000||G|6|fmt=}} |
1000000000 bytes (0.931323 GB) |