Logo: Relish

  1. Sign in

Project: Corrency

Nice Rounding

In order to make prices look nicer to customers
As a user of the Corrency Library
I should be able to round a number up to the nearest 99

Scenarios
Rolling Prices up to the next ninety nine
Given
there is a value of price
Then
I should have a price nearest ninety nine of nice_price
Examples:
price nice_price
61.33 61.99
90.00 89.99
100.00 99.99
3.43 3.99

Last published almost 5 years ago by Rob.