(05-13-2023 06:00 PM)toml_12953 Wrote: The manual I have says this on page 635:
"You can also specify the font size (10 to 22)" so it looked like the range is 10 - 22.
The calculator Help is generally more up-to-date than the manual.
For STRING it says:
Quote:Syntax:
STRING(Expression, [Mode], [Precision], [Separator or {Separator, ["[DecimalPoint[Exponent[NegativeSign]]]"], [DotZero]}], [SizeLimit or {SizeLimit, [FontSize], [Bold], [Italic], [Monospaced]}])
Evaluates Expression and returns the result as a string.
The Mode, Precision, and Separator parameters specify how numbers are displayed.
If Mode is specified, it is:
0: Use current setting
1: Standard
2: Fixed
3: Scientific
4: Engineering
5: Floating
6: Rounded
Add 7 to this value to specify proper fraction mode and 14 for mixed fraction mode.
Precision is either -1 for current settings or 0 to 12.
Separator can be a number. -1 means use default, 0 to 10 correspond to the 11 built-in digit grouping choices available in home settings.
OR
Separator can be a string containing a set of digits and separators. The last digit is assumed to be the one just before the decimal point.
"[DecimalPoint[Exponent[NegativeSign]]]" is a string of 0 to 3 characters. The first one will be used for the decimal point, the second for the exponent and the last one for the negative sign.
If DotZero is non-zero, then numbers between -1 and 1 are displayed without a leading zero (for example, .1 instead of 0.1)
If SizeLimit is specified, the command will attempt to generate a string that fits in the given number of pixels. FontSize is used along with Bold, Italic, and Monospaced (if their value is non-zero) to estimate the maximum string length that will fit.
The values for FontSize are:
0=current font (default)
1=font 10
2=font 12 (Small)
3=font 14 (Medium)
4=font 16 (Large)
5=font 18
6=font 20
7=font 22
Examples:
Current number format setting Standard:
STRING(3*π) → "9.42477796077"
Number format Fixed, 4 decimal places:
STRING(3*π,2,4) → "9.4248"