Algosim documentation: \

\ (reverse solidus)

Set the number of displayed digits of a number or the display limit of a container.

Syntax

Description

If X is a number, then X \ n returns X with its number of digit setting set to n. This is a shortcut to SetNumDigits(X, n).

If X is a suitable container, then X \ n returns X with its display limit set to n. This is a shortcut to SetMaxLen(X, n).

Notes

Don’t confuse the set minus symbol (U+2216: SET MINUS) with \ (U+005C: REVERSE SOLIDUS).

Examples

π \ 5
3.1416	(=π)
π \ 18
3.14159265358979324	(=π)
1/69 \ 100
0.0144927536231884057971014492753623188405797101449275362318840579710144927536231
  8840579710144927536232	(=1/69)
IdentityMatrix(10) \ 5
⎛1  0  0  0  0  ⋯⎞
⎜0  1  0  0  0  ⋯⎟
⎜0  0  1  0  0  ⋯⎟
⎜0  0  0  1  0  ⋯⎟
⎜0  0  0  0  1  ⋯⎟
⎝⋮  ⋮  ⋮  ⋮  ⋮  ⋱⎠

See also