runtime
205 / 500
question 205 Dates Numbers & Regex · medium

Three ways to round a half cent

Each price is an exact half cent. The program rounds it three ways: Decimal's default rule, Decimal with ROUND_HALF_UP, and a float formatted with :.2f. Type exactly what it prints.

Loading your progress…

Three ways to round a half cent — Python practice · Runtime