Voldemort Voldemort - 1 year ago 63
Ruby Question

Arithmetic gives unexpected value in ruby

Why is this:


Giving me
when it should be

Answer Source

^ is the bitwise exclusive OR operator (XOR)

** is the exponent operator, use:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download