NumExt extension

on

Properties

grouped String

Available on num, provided by the NumExt extension

Alias of toGroupedString()
no setter
readable String

Available on num, provided by the NumExt extension

alias of toReadable(1)
no setter

Methods

toGrouped([String separator = ',']) String

Available on num, provided by the NumExt extension

Convert to a grouped string (e.g. 1234567 -> 1,234,567).
toReadable([int fractionDigits = 1, bool forceFraction = false]) String

Available on num, provided by the NumExt extension

Convert to a human-readable string (e.g. 1234 -> 1.2K).