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

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

Description

Converts a decimal number to a binary 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.

Outputs

Name Description
c Returns a binary number equivalent to a. Valid binary digits are 0 and 1. c is a string.

Examples

A = 2562525
C = dec2bin(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