diff --git a/doc/site/modules/core/num.markdown b/doc/site/modules/core/num.markdown index 51858d3f..095f6ded 100644 --- a/doc/site/modules/core/num.markdown +++ b/doc/site/modules/core/num.markdown @@ -25,7 +25,7 @@ The value of π. ### Num.**tau** -The value of τ. +The value of τ. This is equivalent to ```2 * Num.pi```. ### Num.**largest** @@ -241,6 +241,24 @@ unsigned values. The result is then a 32-bit unsigned number where each bit is It is a runtime error if `other` is not a number. +### **^**(other) operator + +Performs bitwise exclusive or on the number. Both numbers are first converted to 32-bit unsigned values. The result is then a 32-bit unsigned number where each bit is `true` only where the corresponding bits of one (but not both) inputs were `true`. Each bit is therefore `false` if the corresponding bits of both inputs were either both `true` or both `false`. + +It is a runtime error if `other` is not a number. + +### **<<**(other) operator + +Performs a bitwise left shift on the number. Internally, both numbers are first converted to 32-bit unsigned values and C's left shift operator is then applied to them. + +It is a runtime error if `other` is not a number. + +### **>>**(other) operator + +Performs a bitwise right shift on the number. Internally, both numbers are first converted to 32-bit unsigned values and C's right shift operator is then applied to them. + +It is a runtime error if `other` is not a number. + ### **..**(other) operator Creates a [Range](range.html) representing a consecutive range of numbers