Originally Posted by
dulux-oz
That rounding error is one that I've been struggling with. The problem is with the precision that the lua scripting code uses for all its mathematical operations (ie its inbuilt to the engine0. The question in automatically having a rounding function is "round it to what?" Sure, we could round to the nearest 0.01 for decimal systems, but if you're using 240 pennies to the pound, or even 20 silver to the gold or 5 gold to the platinum - well, they've all got different rounding values.
So I'm still trying to work out how to go about it - and yes, it is tied up with figuring out change :)
So, for the moment, round it manually (and I'd round it in the favor of the shopkeeper, obviously) - I'll try to get something sorted to do it automatically (when I figure out what needs to be done exactly).