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

base2dec (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 = base2dec(a, b)

Description

Converts a base b number represented by a string to a decimal number.

Examples

Inputs

Name Description
a Specifies a number in base b. The base b notation uses the following digits: 0, 1, ... , 9, A, B, ... , Z. a is a string.
b Specifies the base of a. b can be any integer between 2 and 36.

Outputs

Name Description
c Returns a decimal number equivalent to a.

Examples

A = '1AD00X'
C = base2dec(A, 36)

Related Topics

bin2dec
dec2base
hex2dec


Resources


 

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