double

fun double(name: String, declare: DebugNumberSpec.() -> Unit = {}): DebugParam<Double?>

Declares a decimal parameter named name, such as 0.35 or 1e-3, as a Double, in the range of DebugNumberSpec.min and DebugNumberSpec.max when they are set. A whole number, such as 2, is a decimal too. NaN, the infinities, and a number too large for a Double get a 400: JSON can't carry them. In the query or a form, the value is written as a JSON number, optionally with a leading +, so 0x1p3 and 1d get a 400.