Number

From GMod Wiki

Revision as of 22:56, 2 October 2009 by Dlaor (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

In Lua, the number type is, by default, a double precision floating point number.

Example

DescriptionDeclare a number.
Used onNewerShared.png
Code
my_num = 1234.2 
//that wasn't so bad was it?
 
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox