Template:MeleeHitboxScale: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
(New Page: {{#ifexpr:{{{1|0}}}/250 = trunc({{{1|0}}}/250)|{{#expr:{{{1|0}}}/250}}.0|{{#expr:{{{1|0}}}/250}}}}<noinclude> Basically, divides by 250 and adds a ".0" if necessary. Melee hitbox radiu...)
 
(Corrected the scaling factor to 1/256)
Tag: Mobile edit
Line 1: Line 1:
{{#ifexpr:{{{1|0}}}/250 = trunc({{{1|0}}}/250)|{{#expr:{{{1|0}}}/250}}.0|{{#expr:{{{1|0}}}/250}}}}<noinclude>
{{#ifexpr:{{{1|0}}}/256 = trunc({{{1|0}}}/256)|{{#expr:{{{1|0}}}/256}}.0|{{#expr:{{{1|0}}}/256}}}}<noinclude>


Basically, divides by 250 and adds a ".0" if necessary. Melee hitbox radius and position aren't saved as decimal numbers; this does the conversion.
Basically, divides by 256 and adds a ".0" if necessary. Melee hitbox radius and position aren't saved as decimal numbers; this does the conversion.


[[Category:Meta-templates]]</noinclude>
[[Category:Meta-templates]]</noinclude>

Revision as of 13:21, March 12, 2020

0.0

Basically, divides by 256 and adds a ".0" if necessary. Melee hitbox radius and position aren't saved as decimal numbers; this does the conversion.