quantityToStackSize
quantityToStackSize: (number) -> stringA short K/M/B stack size of at most six characters, e.g. 9,450, 2.14B, 100K.
| Method | Returns | Description |
|---|---|---|
quantityToStackSize(number) | string | A short K/M/B stack size of at most six characters, e.g. 9,450, 2.14B, 100K. |
quantityToRSDecimalStack(number) | string | (number) -> string: The stack size as the game prints it, truncated to one decimal. |
quantityToRSDecimalStack(number, boolean) | string | |
parseQuantity(string) | number | "1.5m" as 1500000; an error for text that is not a quantity. |
formatNumber(number) | string | Comma-grouped, with at most three decimals rounded half-even, e.g. 10,123,351, 5.612. |
quantityToStackSizequantityToStackSize: (number) -> stringA short K/M/B stack size of at most six characters, e.g. 9,450, 2.14B, 100K.
quantityToRSDecimalStackquantityToRSDecimalStack: ((number) -> string) & ((number, boolean) -> string)(number) -> string: The stack size as the game prints it, truncated to one decimal.
(number, boolean) -> string: As the one-argument form, with three decimals for millions and up when precise.
parseQuantityparseQuantity: (string) -> number"1.5m" as 1500000; an error for text that is not a quantity.
formatNumberformatNumber: (number) -> stringComma-grouped, with at most three decimals rounded half-even, e.g. 10,123,351, 5.612.