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

contents.gifindex.gifprev1.gifnext1.gif

Bitwise And

Format: x & y

Arguments: (int) x Any integer

(int) y Any integer

Returns: (int) Bitwise x AND y

Description: This operator converts x and y from floating point numbers to 32-bit integers, compares all corresponding bits in x and y, and then returns a number that contains a 1 in each bit where the corresponding bits in both x AND y are 1.

Examples: 15&7 = 7  (1111 & 0111 = 0111)

5&3 = 1  (0101 & 0011 = 0001)

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

  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