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

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

Description

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

Examples

Inputs

Name Description
a Specifies a binary string with digits 0 and 1.

Outputs

Name Description
c Returns a decimal number equivalent to a. LabVIEW considers letters or digits other than 0 and 1 in a to be zeros.

Examples

A = '101111011'
C = bin2dec(A)

Related Topics

base2dec
dec2bin
hex2dec
hex2num


Resources


 

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