Dec

From AutoIt Wiki

Jump to: navigation, search

Returns a numeric representation of a hexadecimal string. Adapted from AutoIt docs.

Contents

[edit] Syntax

$x = Dec("hex")

[edit] Parameters

hexThe hexadecimal string to convert up to the signed 32-bit integer bounds (-2147483648 to 2147483647).

[edit] Return Value

Success: Returns an integer.
Failure: Returns 0 and sets @error to 1 if an invalid hex string is used or if an overflow occurs.

[edit] Example

$dec = Dec("FFFF")  ;returns the number 65536

[edit] Related Functions

Hex

Personal tools