Template:Datacalc: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| Mailmanmicky (talk | contribs) mNo edit summary | Mailmanmicky (talk | contribs)  mNo edit summary | ||
| (11 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| {{Todo|Implement a input filesize parameter that determines the exponentiation of the output filesize.}} | |||
| <onlyinclude><includeonly>{{#expr:{{{1|0}}} / {{#switch:{{{output}}} | |||
| {{Todo|Implement input filesize parameter that determines the exponentiation of the output filesize.}} |                           | quettabytes | qb = 10^30 | ||
| <onlyinclude><includeonly> |                           | ronnabytes  | rb = 10^27 | ||
| {{#expr:{{{1|0}}} {{#switch:{{{output}}} |                           | yottabytes  | yb = {{#switch:{{{prefix}}}|binary=2^80|#default=10^24}} | ||
|                           | zettabytes  | zb = {{#switch:{{{prefix}}}|binary=2^70|#default=10^21}} | |||
|                           | exabytes    | eb = {{#switch:{{{prefix}}}|binary=2^60|#default=10^18}} | |||
|                           | petabytes   | pb = {{#switch:{{{prefix}}}|binary=2^50|#default=10^15}} | |||
|                           | terabytes   | tb = {{#switch:{{{prefix}}}|binary=2^40|#default=10^12}} | |||
|                           | gigabytes   | gb = {{#switch:{{{prefix}}}|binary=2^30|#default=10^9}} | |||
|                           | megabytes   | mb = {{#switch:{{{prefix}}}|binary=2^20|#default=10^6}} | |||
|                           | kilobytes   | kb = {{#switch:{{{prefix}}}|binary=2^10|#default=10^3}} | |||
|                           | #default         = 1  <!-- Default expression assumes conversion of bytes to bytes, i.e.: no conversion performed. --> | |||
|                           }} {{#if:{{{round|}}}|round {{{round|2}}}|}} | |||
| }} {{#switch:{{{output}}} | |||
| | quettabytes | qb = {{#switch:{{{id}}}|abbreviate=QB|none=|#default=quettabytes}} | |||
| | ronnabytes  | rb = {{#switch:{{{id}}}|abbreviate=RB|none=|#default=ronnabytes}} | |||
| }} {{#if:{{{ | | yottabytes  | yb = {{#switch:{{{id}}}|abbreviate=YB|none=|#default={{#switch:{{{prefix}}}|binary=yobibytes|#default=yottabytes}}}} | ||
| | quettabytes | qb = quettabytes | | zettabytes  | zb = {{#switch:{{{id}}}|abbreviate=ZB|none=|#default={{#switch:{{{prefix}}}|binary=zebibytes|#default=zettabytes}}}} | ||
| | ronnabytes  | rb = ronnabytes | | exabytes    | eb = {{#switch:{{{id}}}|abbreviate=MB|none=|#default={{#switch:{{{prefix}}}|binary=exbibytes|#default=exabytes}}}} | ||
| | yottabytes  | yb = {{#switch:{{{prefix}}}|binary=yobibytes|#default=yottabytes}} | | petabytes   | pb = {{#switch:{{{id}}}|abbreviate=PB|none=|#default={{#switch:{{{prefix}}}|binary=pebibytes|#default=petabytes}}}} | ||
| | zettabytes  | zb = {{#switch:{{{prefix}}}|binary=zebibytes|#default=zettabytes}} | | terabytes   | tb = {{#switch:{{{id}}}|abbreviate=TB|none=|#default={{#switch:{{{prefix}}}|binary=tebibytes|#default=terabytes}}}} | ||
| | exabytes    | eb = {{#switch:{{{prefix}}}|binary=exbibytes|#default=exabytes}} | | gigabytes   | gb = {{#switch:{{{id}}}|abbreviate=GB|none=|#default={{#switch:{{{prefix}}}|binary=gibibytes|#default=gigabytes}}}} | ||
| | petabytes   | pb = {{#switch:{{{prefix}}}|binary=pebibytes|#default=petabytes}} | | megabytes   | mb = {{#switch:{{{id}}}|abbreviate=MB|none=|#default={{#switch:{{{prefix}}}|binary=mibibytes|#default=megabytes}}}} | ||
| | terabytes   | tb = {{#switch:{{{prefix}}}|binary=tebibytes|#default=terabytes}} | | kilobytes   | kb = {{#switch:{{{id}}}|abbreviate=kB|none=|#default={{#switch:{{{prefix}}}|binary=kibibytes|#default=kilobytes}}}} | ||
| | gigabytes   | gb = {{#switch:{{{prefix}}}|binary=gibibytes|#default=gigabytes}} | | #default = {{#switch:{{{id}}}|abbreviate=B|none=|#default=bytes}} | ||
| | megabytes   | mb = {{#switch:{{{prefix}}}|binary=mibibytes|#default=megabytes}} | }}</includeonly></onlyinclude>{{doc}}[[Category:Mathematics templates]] | ||
| | kilobytes   | kb = {{#switch:{{{prefix}}}|binary=kibibytes|#default=kilobytes}} | |||
| | #default = bytes | |||
| }}}}<includeonly></onlyinclude> | |||
Latest revision as of 21:26, 3 June 2023
Todo: Implement a input filesize parameter that determines the exponentiation of the output filesize.
The above documentation is transcluded from Template:Datacalc/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
























 Available doc translations
 Available doc translations 
 
  
  
  
 