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

dec_to_hex (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

Syntax

c = dec_to_hex(a)

c = dec_to_hex(a, b)

Legacy Name: dec2hex

Description

Converts a decimal number to a hexadecimal number represented by a string.

Examples

Inputs

Name Description
a Specifies a decimal number. a is an integer between 0 and 2^52-1. LabVIEW rounds a if a is not an integer.
b Specifies the number of hex-digits in c. b is a positive integer.

Outputs

Name Description
c Returns a hexadecimal number equivalent to a. c is a string. Valid hexadecimal characters are: 0-9, A, B, C, D, E and F.

Details

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

Examples

A = 2562525
C = dec_to_hex(A)

Related Topics

base_to_dec
bin_to_dec
hex_to_dec
hex_to_num


 

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