convInt()

Returns an integer of a binary, octal or hexadecimal number

Syntax
y = convInt(val, base)

Arguments
Name Description Range Type Required
val string representation of the binary, octal or hexadecimal number to be converted string yes
base base of the conversion 2|8|16 † integer yes
† base values: 2:binary, 8:octal, 16:hexadecimal

Examples

b2I = convInt("11100", 2)
returns 28
o2I = convInt("34", 8)
returns 28

h2I = convInt("1c", 16)
returns 28

Defined in

Built in

See Also

convBin(), convHex(), convOct()

 

Privacy Statement  | Terms of Use  | Legal | Contact Us  | © Agilent 2000-2008 

Contents
Additional Resources