將數字轉換成固定小數位數。
使用範本
FIXED(3.141592653,2)
FIXED(966364281,4,1)
語法
FIXED(number, number_of_places, suppress_separator)
number
要轉換格式的數字。位數
要在結果中顯示的小數位數。 結果- IF
number
has fewer than位數
significant digits, zeros will be appended. If it has greater than位數
有效位數number
will be rounded to the correct位數
rather than truncated.
- IF
隱藏分隔符
- [ OPTIONAL -0
by default ] - Whether or not to suppress the thousands separator used in some locales (e.g.1,000
becomes1000
). Separators will be present if this value is 0 or omitted, and absent otherwise.