Template:Datacalc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 2: Line 2:
{{Todo|Implement input filesize parameter that determines the exponentiation of the output filesize.}}
{{Todo|Implement input filesize parameter that determines the exponentiation of the output filesize.}}
{{Todo|Implement a switch that swaps out the expression's decimal prefix for a binary prefix.}}
{{Todo|Implement a switch that swaps out the expression's decimal prefix for a binary prefix.}}
{{Note|Included expression assumes input string filesize in bytes.}}
<onlyinclude><includeonly>
<onlyinclude><includeonly>
{{#expr:{{{1|0}}} {{#switch:{{{output}}}
{{#expr:{{{1|0}}} {{#switch:{{{output}}}

Revision as of 10:12, 1 June 2023

This template interprets a numbered input string in bytes and converts it to your specified output filesize.

Todo: Implement input filesize parameter that determines the exponentiation of the output filesize.
Todo: Implement a switch that swaps out the expression's decimal prefix for a binary prefix.