Checks if length of double value is LESS OR EQUAL to max.
bool isLengthLessThanOrEqualTo(int max) => length <= max;