Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:NBlocks/doc: Difference between revisions

From Hacks Guide Wiki
No edit summary
(Created page with "Convert between Nintendo blocks and standard byte units. == Examples == {| class="wikitable" ! Wikitext !! Result |- | <code><nowiki>{{#invoke:NBlocks|blocks_to_bytes|16}}</nowiki></code> || {{#invoke:NBlocks|blocks_to_bytes|16}} |- | <code><nowiki>{{#invoke:NBlocks|blocks_to_kilobytes|16}}</nowiki></code> || {{#invoke:NBlocks|blocks_to_kilobytes|16}} |- | <code><nowiki>{{#invoke:NBlocks|blocks_to_megabytes|16}}</nowiki></code> || {{#invoke:NBlocks|b...")
Line 8: Line 8:
| <code><nowiki>{{#invoke:NBlocks|blocks_to_bytes|16}}</nowiki></code> || {{#invoke:NBlocks|blocks_to_bytes|16}}
| <code><nowiki>{{#invoke:NBlocks|blocks_to_bytes|16}}</nowiki></code> || {{#invoke:NBlocks|blocks_to_bytes|16}}
|-
|-
| <code><nowiki>{{#invoke:NBlocks|blocks_to_kib|16}}</nowiki></code> || {{#invoke:NBlocks|blocks_to_kib|16}}
| <code><nowiki>{{#invoke:NBlocks|blocks_to_kilobytes|16}}</nowiki></code> || {{#invoke:NBlocks|blocks_to_kilobytes|16}}
|-
|-
| <code><nowiki>{{#invoke:NBlocks|blocks_to_mib|16}}</nowiki></code> || {{#invoke:NBlocks|blocks_to_mib|16}}
| <code><nowiki>{{#invoke:NBlocks|blocks_to_megabytes|16}}</nowiki></code> || {{#invoke:NBlocks|blocks_to_megabytes|16}}
|-
|-
| <code><nowiki>{{#invoke:NBlocks|bytes_to_blocks|2097152}}</nowiki></code> || {{#invoke:NBlocks|bytes_to_blocks|2097152}}
| <code><nowiki>{{#invoke:NBlocks|bytes_to_blocks|2097152}}</nowiki></code> || {{#invoke:NBlocks|bytes_to_blocks|2097152}}
|-
|-
| <code><nowiki>{{#invoke:NBlocks|mib_to_blocks|2}}</nowiki></code> || {{#invoke:NBlocks|mib_to_blocks|2}}
| <code><nowiki>{{#invoke:NBlocks|megabytes_to_blocks|2}}</nowiki></code> || {{#invoke:NBlocks|megabytes_to_blocks|2}}
|-
| <code><nowiki>{{#invoke:NBlocks|format_bytes|786333696}}</nowiki></code> || {{#invoke:NBlocks|format_bytes|786333696}}
|}
|}

Revision as of 04:37, 18 October 2023

Convert between Nintendo blocks and standard byte units.

Examples

Wikitext Result
{{#invoke:NBlocks|blocks_to_bytes|16}} 2097152
{{#invoke:NBlocks|blocks_to_kilobytes|16}} Script error: The function "blocks_to_kilobytes" does not exist.
{{#invoke:NBlocks|blocks_to_megabytes|16}} Script error: The function "blocks_to_megabytes" does not exist.
{{#invoke:NBlocks|bytes_to_blocks|2097152}} 16
{{#invoke:NBlocks|megabytes_to_blocks|2}} Script error: The function "megabytes_to_blocks" does not exist.