Algosim documentation: FormatStyle

FormatStyle

Returns the special format style of a numeric entity.

Syntax

Description

FormatStyle(x) returns the name of the special format style of x as a string. For most objects, this is "default", but some objects are displayed in a custom way. For instance, both GetInstrument() and DayOfTheWeek() might return 1, but these values will be displayed as "Bright Acoustic Piano" (the MIDI instrument with number 1) and "Monday" (the first day of the week), respectively, because they have non-default styles.

Examples

L ≔ '(π, GetInstrument(), DayOfTheWeek(), date().month)
3.14159265359
Bright Acoustic Piano
Friday
September
L @ RealNumber
3.14159265359
1
5
9
L @ FormatStyle
default
MIDI instrument
day of week
month

See also