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

Scale By Power Of 2

LabVIEW 8.2 Help
August 2006

NI Part Number:
371361B-01

»View Product Info

Multiplies x by 2 raised to the power of n. If x is an integer, this function is the equivalent of an arithmetic shift. The connector pane displays the default data types for this polymorphic function. Example

n can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on. If n is a floating-point number, this function rounds n before it scales x (0.5 rounds to 0; 0.51 rounds to 1). If n is a 64-bit integer, LabVIEW coerces n to a 32-bit integer.
x can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on.
x*2^n is the result of multiplying x by 2, raised to the power of n.

Example

Refer to the Add - Various Uses VI in the labview\examples\general\functions\Numeric directory for an example of using the Scale By Power Of 2 function.

 


Resources


 

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