Expression error: Unrecognized punctuation character "{".{{{1}}} bytes


Use this template to to display signifigant figures in three unit types depending on user css preferences. The units can be display in Binary, SI, or exact.

Examples

edit
{{User:Dispenser/Binary Units|1471}}
{{User:Dispenser/Binary Units|1474560}}
{{User:Dispenser/Binary Units|12345678}}

1.44 KiB1.47 kB1,471 bytes

1.41 MiB1.47 MB1,474,560 bytes

11.77 MiB12.35 MB12,345,678 bytes

Parameters

edit
1
The size of the number in exact units
2
the round off, default is 2 decimal places.

User CSS Classes

edit

Binary without the "i":

.IEC span { display:none; }
.SI { display:none; }
.exact { display:none; }

Binary with the "i":

.SI { display:none; }
.exact { display:none; }

Normal SI units:

.IEC { display:none; }
.exact { display:none; }

Exact only:

.IEC { display:none; }
.SI { display:none; }