Module:Number/doc

From RuneRealm Wiki

This is the current revision of this page, as edited by Alex (talk | contribs) at 23:09, 11 October 2024 (Created page with "{{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. 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 }}"). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is the documentation page for Module:Number

This is a documentation subpage for Module:Number.
It contains usage information, categories, and other content that is not part of the original module page.
Module:Number is required by Module:ChangePerDay.
Module:Number is required by Module:ExchangeDefault.
Module:Number is required by Module:Mmgsection.
Module:Number is required by Module:Mmgtable.

This module is a helper module to be used by other modules; it may not designed to be invoked directly. See RuneScape:Lua/Helper modules for a full list and more information.

FunctionTypeUse
_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