Skip to content

K.Format ​

Functions ​

K.Format.Short ​

lua
K.Format.Short(value: number, decimals: number?): string

950 --> "950", 1234 --> "1.2K", 5600000 --> "5.6M"

K.Format.Comma ​

lua
K.Format.Comma(value: number): string

1234567 --> "1,234,567"

K.Format.Time ​

lua
K.Format.Time(seconds: number): string

75 --> "01:15", 3725 --> "1:02:05"

Generated from src/Corode/Util/Format.luau.

Corode 0.13.0 · MIT License