thanks, its close

but an input of 8.925 still return 8.92 where as i need 8.93
(this might sound strange but if i have a carton that I buy at 107.10 and it has 12 bags inside, 107.10 / 12 = 8.925 and i have a 25% markup, then the carton is sold at 107.10 + 25% and the bag should be sold at 8.93 + 25% which = 11.90 not 11.89 (which i would loose 12c per carton * 1000 cartons per year )

If i calculate inside the database (postgresql) using its round function I get the expected (right) results and its their round function i need to emulate..