Garry's Mod Wiki

Revision Difference

float#563668

<cat>Dev</cat>⤶ <title>Floats</title>⤶ ⤶ # 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.