`
Par2: Swedish rounding 2005-03-24 -- Jorg Fakler > A fun fact about New Zealand: The monetary system revolves around Swedish > rounding. Back around 6 years ago when the switch to plastic money happened, > New Zealand got rid of the penny and instituted a crazy rounding scheme. > Here's how it goes: middle numbers (3, 4, 5, 6, and 7) all round to 5, and > end numbers (8, 9, 0, 1, and 2) round to 0. So something that's 3.97 rounds > to 3.95. Got it? Good, you're on your way to becoming Kiwi. decimalAmount *= 100 decimalAmount += 2.5 longAmount = decimalAmount / 5 decimalAmount = longAmount / 20 Printed November 21, 2024, 11:25 am This article has been viewed/printed 35231 times. |