Dec

From AutoIt Wiki

Jump to: navigation, search

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

Contents

Syntax

$x = Dec("hex")

Parameters

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

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.

Example

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

Related Functions

Hex

Personal tools