Formats a number with a fixed number of decimal places.
Sample Usage
FIXED(3.141592653,2)
FIXED(966364281,4,1)
Syntax
FIXED(number, [number_of_places], [suppress_separator])
-
number- The number to format. -
number_of_places- [ OPTIONAL ]- The number of decimal places to display in the result.- If
numberhas fewer thannumber_of_placessignificant digits, zeros will be appended. If it has greater thannumber_of_placessignificant digits,numberwill be rounded to the correctnumber_of_placesrather than truncated.
- If
-
suppress_separator- [ OPTIONAL -0by default ] - Whether or not to suppress the thousands separator used in some locales (e.g.1,000becomes1000). Separators will be present if this value is 0 or omitted, and absent otherwise.