Oh good point, I forgot about floating point numbers. I think this works then.