I'd like a formula for the following Rounding Rules for a value in cell A1

Min Max Rule
$ - $ 0.99 no rounding rule
$ 1.00- $ 9.99 round up to a .x5 or .x9
$ 10.00- $ 49.99 round up to a .49 or .99
$ 50.00- $ 999.99 round up to xx5.00 or xx9.00
$ 1,000.00- $ 9,999.99 round up to x,x45.00 or x,x99.00
$ 10,000.00 above round up to xx,500.00 or xx,900.00