The Wizard's Haunt Bug

I try to use a decimal but it either rounds up or down.

I don’t see what you are talking about could you post your code please?