getMaximumValue should consider Float values