Not able to reproduce your issue. Not sure but i think you made mistake while defining precision of price and qty coloumn. I did this mistake while i was trying to reproduce your issue and it was giving me unexpected result but when i correct it then it start giving me result in DECIMAL(38,12) 237.50507826