refs #6435 check for floats in a more central place so dimensions do not have to care about this. Makes it a tiny bit slower but less prone to errors