Algosim documentation: SetNumberFormat

SetNumberFormat

Sets the number format of a numeric entity.

Syntax

Description

SetNumberFormat(x, fmt) returns x with the number format set to fmt.

fmt is one of the following values:

Examples

L ≔ '(1/69, 16/5, 952361745213/7, 5.32E20); F ≔ '("default", "fraction", "fixed", "scientific");
ToTable(F @ (f ↦ '(f) ~ L @ (x ↦ SetNumberFormat(x\5, f))))

Image 1

See also