Garry's Mod Wiki

Floats

Floats

A float is not a Lua type, rather it is a type used by the Source Engine and other languages, in GMod you will mostly deal with this type when passing values to shaders.

These floats are provided to shaders as a string, ie "0.1", a float is defined by the IEEE 754 standard.

A simple way to describe a float is as a decimal number with limited precision.