Vanguard Software
Forecasting & Planning Solutions

contents.gifindex.gifprev1.gifnext1.gif

Bitwise Exclusive Or

Format: x ~ y

Arguments: (int) x Any integer

(int) y Any integer

Returns: (int) Bitwise x Exclusive OR 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 x and y are different.

Examples: 15~7 = 8  (1111 ~ 0111 = 1000)

5~3 = 6  (0101 ~ 0011 = 0110)

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

  Forecasting Software  |  Strategic Planning Software  |  Decision Support Software
Decision Tree Software  |  Monte Carlo Simulation Software  |  Risk Analysis Software
Portfolio Analysis  |  Expert System Software  |  Online 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