static bool maxValue(double value, double maxValue) { if (value < maxValue) return true; return false; }