Module:FloorNumber/doc: Difference between revisions

From RuneRealm Wiki
Jump to navigation Jump to search
Content added Content deleted
No edit summary
No edit summary
Tag: Reverted
Line 1: Line 1:
{{No documentation}}
{{documentation}}
{{Helper module
|name = Number
|fname1 = _round(num, dp)
|ftype1 = float, int
|fuse1 = Rounds <code>num</code> to a precision given by <code>dp</code>, if <code>dp</code> is not specified, it defaults to zero. [[wikipedia:Rounding#Round_half_up|Rounds half up.]]
|fname2 = _short(str)
|ftype2 = String
|fuse2 = Convert numbers ending in k, m or b to the actual correct number. Example: 3.5k -> 3500
}}

Revision as of 00:12, 17 October 2024

This is a documentation subpage for Module:FloorNumber.
It contains usage information, categories, and other content that is not part of the original module page.
Module:FloorNumber's function main is invoked by Template:FloorNumber.
Module:FloorNumber requires Module:Ordinal.
Module:FloorNumber requires Module:Yesno.

Number_round(num, dp)float, intRounds num to a precision given by dp, if dp is not specified, it defaults to zero. Rounds half up._short(str)StringConvert numbers ending in k, m or b to the actual correct number. Example: 3.5k -> 3500