Algosim documentation: SetDigitGrouping

SetDigitGrouping

Sets the digit grouping formatting setting of a numeric entity.

Syntax

Description

SetDigitGrouping(x, n) returns x with its digit grouping setting set to n. If n = 0, no digit grouping is used; if n > 0, digits are placed into groups of size n; if n < 0, the default or inherited setting is used. If digits are grouped, groups are separated by figure space (U+2007).

Examples

SetDigitGrouping(prime(15232165), 3)
280 118 851
SetDigitGrouping(SetMinLength(SetNumberBase(16#33CCFF, 2), 32), 8)
00000000 00110011 11001100 11111111	(00000000 00000000 00000000 03394815₁₀)

See also