OptionalfractionOptionallowerExponent determining the lower boundary for formatting a value with an exponent when notation='auto. Default value is -3.
OptionalnotationNumber notation. Choose from: 'fixed' Always use regular number notation. For example '123.40' and '14000000' 'exponential' Always use exponential notation. For example '1.234e+2' and '1.4e+7' 'auto' (default) Regular number notation for numbers having an absolute value between lower and upper bounds, and uses exponential notation elsewhere. Lower bound is included, upper bound is excluded. For example '123.4' and '1.4e7'.
OptionalprecisionA number between 0 and 16 to round the digits of the number. In case of notations 'exponential' and 'auto', precision defines the total number of significant digits returned and is undefined by default. In case of notation 'fixed', precision defines the number of significant digits after the decimal point, and is 0 by default.
OptionalupperExponent determining the upper boundary for formatting a value with an exponent when notation='auto. Default value is 5.
OptionalwordThe word size in bits to use for formatting in binary, octal, or
hexadecimal notation. To be used only with 'bin', 'oct', or 'hex'
values for notation option. When this option is defined the value
is formatted as a signed twos complement integer of the given word
size and the size suffix is appended to the output.
Available values: 'ratio' (default) or 'decimal'. For example format(fraction(1, 3)) will output '1/3' when 'ratio' is configured, and will output 0.(3) when 'decimal' is configured.