input.float

Decimal input shown in the settings dialog, or a dropdown of numbers when options is given. Returns an input float.

input.float(defval: const float, title: const string = na, minval: const float = na, maxval: const float = na, step: const float = na, options: const float = na, tooltip: const string = na, group: const string = na, inline: const string = na, confirm: const bool = false, display: const string = na, active: const bool = true) -> float

Parameters

Example

mult = input.float(2.0, "Multiplier", step=0.1)