Posted inProgress OpenEdge
Rounding and TDD in Progress OpenEdge
Have you ever needed to round something up or down to a certain number of decimal places? This is pretty common, especially when dealing with currency. Progress OpenEdge has a built-in arithmetic function called round that can round to the nearest precision. It's used like this: round(45.566, 0). // 46 round(45.566, 2). // 45.57 round(45.565, 2). // 45.57 round(45.564, 2).…