A float is a floating-point number, which means it is a number that has a decimal place.
It is stored as a single-precision 32-bit IEEE 754 floating-point.
More on the built-in functions can be found in the Built-in Function section
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
varfloat=1.5# Operationsvarfloat=float+1.5# 3.0varfloat=float-1.2# 2.8varfloat=float*2.0# 5.6varfloat=float/3.2# 1.75varfloat=float^2.0# 3.0625varfloat=-float# -3.0625# Check if type is a floatisInteger(float)# 1# Check if not 0.0 (falsy or truthy)isTrue(float)# 0