Vanguard Software
Forecasting & Planning Solutions

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

  Forecasting Software  |  Strategic Planning Software  |  Decision Support Software
Decision Tree Analysis  |  Monte Carlo Simulation Software  |  Risk Analysis Software
Portfolio Analysis Software  |  Expert System Software  |  Customer Questionnaires

Contact Us  |  Terms of Use  |  Privacy Policy  |  Site Map
Vanguard Software
© 2009 Vanguard Software Corporation
Home Products Solutions Services Customers Partners Company
Vanguard
Applying science to business management
Vanguard
Print this page   Email this page to a friend