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

dec2hex (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 = dec2hex(a)

c = dec2hex(a, b)

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.

Examples

A = 2562525
C = dec2hex(A)

Related Topics

base2dec
bin2dec
hex2dec
hex2num


Resources


 

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