Double Argument
class DoubleArgument<T>(name: String, min: Double, max: Double, suggestion: SuggestionAction<T>?, action: ContextAction<T>?) : Argument<Double, T>
Content copied to clipboard
Double precision floating point argument. You can set the minimum and maximum values. If it falls below the minimum value or exceeds the maximum value, an error will be displayed on the client side, and even if you try to execute it, it will not be accepted. Expected input: 2
6.3
-12
0
0.0
See also
Parameters
name
Name of argument.
suggestion
Lambda expression for tab completion of its arguments.
min
The lowest possible value for this argument.
max
The highest possible value for this argument.
Check the following for the specifications of other arguments.
Constructors
DoubleArgument
Link copied to clipboard
fun <T> DoubleArgument(name: String, min: Double = Double.MIN_VALUE, max: Double = Double.MAX_VALUE, suggestion: SuggestionAction<T>? = null, action: ContextAction<T>? = null)
Content copied to clipboard