Vanguard Software
Forecasting & Planning Solutions
Home Products Solutions Services Customers Partners Company
 
Applying science to business management

contents.gifindex.gifprev1.gifnext1.gif

Left Shift

Format: x << y

Arguments: (int) x, y Any integers

Returns: (int) The value of x with all bits shifted left y places

Description: This operator converts x from a floating-point number to a 32-bit integer, shifts all bits y places to the left, and then returns the result as a floating-point number.

Examples: 2<<3 = 16  (00010 << 3 = 10000)

  3<<2 = 12  (00011 << 2 = 01100)

See Also: Right Shift, Zero-Fill Right Shift, Bitwise And, Bitwise Or, Bitwise Exclusive Or, Bitwise Not

  Demand Planning  |  Financial Forecasting
Forecasting Software  |  Strategic Planning Software  |  Decision Tree Software
Decision Support Software  |  Expert System Software  |  Online Surveys

Contact Us  |  Terms of Use  |  Privacy Policy  |  Site Map
Vanguard Software
© 2011 Vanguard Software Corporation
Print this page   Email this page to a friend