fix for a rare bug which.

The truncation should be done at a different decimal than the comparison.