use decimal, not a float and remove useless test (bug 883974)