float - Pine Script Type
Overview
Section titled “Overview”Keyword used to explicitly declare the “float” (floating point) type of a variable or a parameter.
Remarks
Section titled “Remarks”- Explicitly mentioning the type in a variable declaration is optional, except when it is initialized with na. Learn more about Pine Script® types in the User Manual page on the Type System.
Example
Section titled “Example”//@version=6indicator("float")float f = 3.14 // Same as `f = 3.14`f := naplot(f)