DigitGrouping.length

Calculates the number of characters in the string representation of a thousands separated number.

Note: this method is faster than generating the string then checking its .length property.

class DigitGrouping
static
size_t
length
(
T
)
(
T num
)

Parameters

T

type of number

num T

number to work out length of

Return Value

Type: size_t

number of characters in the string representation of the thousands separated number

Meta