PickBASIC / FlashBASIC

xtd() function

.md

The xtd() function converts an expression from its hexadecimal format into its equivalent decimal format.

Syntax

xtd(str.exp)

Parameter(s)

str.exp Hexadecimal expression to convert to decimal format.

Description

When a nonhexadecimal string is passed to the xtd() function, 0 is returned.

Example(s)

This assigns 10 to number.

number = xtd("a")

Hexadecimal to decimal

print xtd("FF")   ;* 255

See also

Referenced by