📄 arithmetic.properties
字号:
## Arithmetic properties for configuring BigDecimal calculations ## For setting decimal precision and rounding method of operations related to invoicesinvoice.decimals = 2invoice.rounding = ROUND_HALF_UP# For setting decimal precision and rounding method of operations related to orders,# such as shopping cart amounts and order amountsorder.decimals = 2order.rounding = ROUND_HALF_UP# For setting decimal precision and rounding method of operations related to customer accounts# such as Financial Accountsfinaccount.decimals = 2finaccount.rounding = ROUND_HALF_UP# Most companies would want their sales tax calculations ALWAYS to round up (ie, 100.081 becomes 100.09)# This could be ROUND_CEILING or ROUND_UP. (The difference is that ROUND_CEILING rounds towards positive infinity,# ROUND_UP away from zero. So, for 1.13, both ROUND_UP and ROUND_CEILING will round to 1.2, but for -1.13,# ROUND_UP gives you -1.2 and ROUND_CEILING -1.1.)salestax.calc.decimals = 3salestax.final.decimals = 2salestax.rounding = ROUND_HALF_UP
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -