奇怪了,不是"四捨五入"嗎?怎麼來個"四捨六入五成雙"呢?
請看 Help 中有關 Round 的一段文字:
X is a real-type expression. Round returns an Int64 value that is the value of X rounded to the nearest whole number. If X is exactly halfway between two whole numbers, the result is always the even number.
紅色部分明白指出"五成雙"
舉例說明:
Round(1.5) 結果是 2
Round(2.5) 結果也是 2
Round(1.51) 結果是 2 (not exactly halfway)
Round(2.51) 結果是 3 (not exactly halfway)