Core Function Dec

From Sputnik Wiki
Revision as of 11:50, 16 September 2015 by UberFoX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Dec( <expression> )

Contents

Description

Returns a integer representation of a hexadecimal string.

Parameters

expression

The hexadecimal string to convert.

Return Value

Success: Returns an integer.

Failure: Returns 0.

Remarks

The function only works with numbers that fit in a 32 bit signed integer.

Example

$result = Dec("409");
println($result); // prints "1033"
 
$result = Dec("0409");
println($result); // prints "1033"
 
$result = Dec("AABB");
println($result); // prints "43707"
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox