將數字轉換成固定小數位數。
使用範本
FIXED(3.141592653,2)
FIXED(966364281,4,1)
語法
FIXED(number, number_of_places, suppress_separator)
number要轉換格式的數字。位數要在結果中顯示的小數位數。 結果- IF
numberhas fewer than位數significant digits, zeros will be appended. If it has greater than位數有效位數numberwill be rounded to the correct位數rather than truncated.
- IF
隱藏分隔符- [ 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.