Log inGet started
Package

incrementalKit.package

Newest version

README.md

numbers (incrementalKit)

Every number the kit shows goes through this module. local N = require("incrementalKit.numbers") (or Inc.format / Inc.setNumberStyle). Nine styles behind one switch: the five of productionKit.numbers it builds on (short 1.2K 3.4M 5.6B, letters K M B T aa ab, scientific 1.23e15, engineering 12.3e15, words 1.2 million) plus four of its own: si (SI prefixes 1.2k 3.4M 5.6G 7.8T 9.1P … Q), myriad (Japanese myriads in romaji: 56.7man, 8.9oku, 1.2chō), kanji (the same in kanji: 56.7万 8.9億 1.2兆; needs a CJK font) and grouped (every digit: 3,400,000). N.format(n, style?), N.rate(perSecond, opts?), N.delta, N.duration, N.percent, N.grouped, N.setStyle, N.style, N.styleId (aliases such as aa, sci, metric, japanese, commas), N.STYLES and N.INFO (name, sample and tags per style). Setting one of the five base styles also sets productionKit's own, so a game using both kits writes numbers one way.