* @param defaultValue the default float if user simply presses Enter (may be {@code null})
* @param min the minimum acceptable value (inclusive), or {@code null} if no lower bound
* @param max the maximum acceptable value (inclusive), or {@code null} if no upper bound
- * @param allowEmpty if {@code true}, empty input returns {@code null} when {@code defaultValue} is null
+ * @param allowEmpty if {@code true}, empty input returns {@code null} when {@code defaultValue} is null.
+ * When defaultValue is not null, allowEmpty has no effect.
* @return a {@code Float} value entered by the user, or {@code defaultValue}, or {@code null}
*/
public static Float askFloat(String prompt, Float defaultValue, Float min, Float max, boolean allowEmpty) {