Garry's Mod Wiki

tonumber

number tonumber( any value, number base = 10 )

Description

Attempts to convert the value to a number.

Returns nil on failure.

Arguments

1 any value
The value to convert. Can be a number or string.
2 number base = 10
The used in the string. Can be any integer between 2 and 36, inclusive.

Returns

1 number
The numeric representation of the value with the given base, or nil if the conversion failed.

Page Links


Special Pages


Wikis

?

Render Time: 69ms

DB GetPage 40
Generate Html 3
SaveChanges (1) 13
Render Body 0
Render Sidebar 11