Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

hex2num (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the string class.

Syntax

c = hex2num(a)

Description

Converts a hexadecimal number represented by a 16-character string to a double-precision, floating-point number.

Examples

Inputs

Name Description
a Specifies a hexadecimal number. Valid hexadecimal characters are: 0-9, a, b, c, d, e, f. You also can use the following characters: 0-9, A, B, C, D, E and F. a is a 16-character string. If a has fewer than 16 characters, LabVIEW pads the end of the string with zeros.

Outputs

Name Description
c Returns a double-precision number equivalent to a.

Examples

A = '410aa1109f'
C = hex2num(A)

Related Topics

hex2dec
sprintf


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit