Float built-in type.
Float built-in type.
Constructs a default-initialized [float] set to [code]0.0[/code].
Constructs a [float] as a copy of the given [float].
Cast a [bool] value to a floating-point value, [code]float(true)[/code] will be equal to 1.0 and [code]float(false)[/code] will be equal to 0.0.
Cast an [int] value to a floating-point value, [code]float(1)[/code] will be equal to [code]1.0[/code].
Returns [code]true[/code] if two floats are different from each other.
Returns [code]true[/code] if the integer has different value than the float.
Multiplies two [float]s.
Multiplies each component of the [Vector2] by the given [float].
[codeblock]
print(2.5 * Vector2(1, 1)) # Vector2(2.5, 2.5)
[/codeblock]
Multiplies each component of the [Vector2i] by the given [float].
[codeblock]
print(2.0 * Vector2i(1, 1)) # Vector2i(2.0, 2.0)
[/codeblock]
Multiplies each component of the [Vector3] by the given [float].
Multiplies each component of the [Vector3i] by the given [float].
Multiplies each component of the [Quaternion] by the given [float].
Multiplies each component of the [Color] by the given [float].
[codeblock]
print(1.5 * Color(0.5, 0.5, 0.5)) # Color(0.75, 0.75, 0.75)
[/codeblock]
Multiplies a [float] and an [int]. The result is a [float].
Adds two floats.
Adds a [float] and an [int]. The result is a [float].
Subtracts a float from a float.
Subtracts an [int] from a [float]. The result is a [float].
Divides two floats.
Divides a [float] by an [int]. The result is a [float].
Returns [code]true[/code] the left float is less than the right one.
Returns [code]true[/code] if this [float] is less than the given [int].
Returns [code]true[/code] the left integer is less than or equal to the right one.
Returns [code]true[/code] if this [float] is less than or equal to the given [int].
Returns [code]true[/code] if both floats are exactly equal.
[b]Note:[/b] Due to floating-point precision errors, consider using [method @GlobalScope.is_equal_approx] or [method @GlobalScope.is_zero_approx] instead, which are more reliable.
Returns [code]true[/code] if the [float] and the given [int] are equal.
Returns [code]true[/code] the left float is greater than the right one.
Returns [code]true[/code] if this [float] is greater than the given [int].
Returns [code]true[/code] the left float is greater than or equal to the right one.
Returns [code]true[/code] if this [float] is greater than or equal to the given [int].