Wait, this doesn't work exactly. If I, say, have 1.568M coins, and then I spend it on something, the numbers goes like 1.432575234M. Do you know a way to fix this?
You can use the float(left(number,digits)) expressions to truncate a number. Or you can multiply by 1000, round(), then divide by 1000 to round to the nearest thousandth.