Module:Number/doc

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to: navigation, search

This is the documentation page for Module:Number

Information icon-grey.svg
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.

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.
_short(str)StringConvert numbers ending in k, m or b to the actual correct number. Example: 3.5k -> 3500