Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

hex_to_num (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: string

Requires: MathScript RT Module


c = hex_to_num(a)

Legacy Name: hex2num


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



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.


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


The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized


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

Related Topics



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