32767_i16
-32768_i16
Returns true
if self
is not equal to other.
Returns true
if self
is not equal to other.
Returns true
if self
is not equal to other.
Returns true
if self
is not equal to other.
Returns true
if self
is not equal to other.
Returns true
if self
is not equal to other.
Returns true
if self
is not equal to other.
Returns true
if self
is not equal to other.
Returns true
if self
is not equal to other.
Returns true
if self
is not equal to other.
Returns true
if self
is not equal to other.
Returns true
if self
is not equal to other.
Returns the result of performing a bitwise AND of self
's and other's bits.
Returns the result of performing a bitwise AND of self
's and other's bits.
Returns the result of performing a bitwise AND of self
's and other's bits.
Returns the result of performing a bitwise AND of self
's and other's bits.
Returns the result of performing a bitwise AND of self
's and other's bits.
Returns the result of performing a bitwise AND of self
's and other's bits.
Returns the result of performing a bitwise AND of self
's and other's bits.
Returns the result of performing a bitwise AND of self
's and other's bits.
Returns the result of performing a bitwise AND of self
's and other's bits.
Returns the result of performing a bitwise AND of self
's and other's bits.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns true
if self
is less than other.
Returns true
if self
is less than other.
Returns true
if self
is less than other.
Returns true
if self
is less than other.
Returns true
if self
is less than other.
Returns true
if self
is less than other.
Returns true
if self
is less than other.
Returns true
if self
is less than other.
Returns true
if self
is less than other.
Returns true
if self
is less than other.
Returns true
if self
is less than other.
Returns true
if self
is less than other.
Returns true
if self
is less than or equal to other.
Returns true
if self
is less than or equal to other.
Returns true
if self
is less than or equal to other.
Returns true
if self
is less than or equal to other.
Returns true
if self
is less than or equal to other.
Returns true
if self
is less than or equal to other.
Returns true
if self
is less than or equal to other.
Returns true
if self
is less than or equal to other.
Returns true
if self
is less than or equal to other.
Returns true
if self
is less than or equal to other.
Returns true
if self
is less than or equal to other.
Returns true
if self
is less than or equal to other.
Returns true
if self
is equal to other.
Returns true
if self
is equal to other.
Returns true
if self
is equal to other.
Returns true
if self
is equal to other.
Returns true
if self
is equal to other.
Returns true
if self
is equal to other.
Returns true
if self
is equal to other.
Returns true
if self
is equal to other.
Returns true
if self
is equal to other.
Returns true
if self
is equal to other.
Returns true
if self
is equal to other.
Returns true
if self
is equal to other.
Returns true
if self
is greater than other.
Returns true
if self
is greater than other.
Returns true
if self
is greater than other.
Returns true
if self
is greater than other.
Returns true
if self
is greater than other.
Returns true
if self
is greater than other.
Returns true
if self
is greater than other.
Returns true
if self
is greater than other.
Returns true
if self
is greater than other.
Returns true
if self
is greater than other.
Returns true
if self
is greater than other.
Returns true
if self
is greater than other.
Returns true
if self
is greater than or equal to other.
Returns true
if self
is greater than or equal to other.
Returns true
if self
is greater than or equal to other.
Returns true
if self
is greater than or equal to other.
Returns true
if self
is greater than or equal to other.
Returns true
if self
is greater than or equal to other.
Returns true
if self
is greater than or equal to other.
Returns true
if self
is greater than or equal to other.
Returns true
if self
is greater than or equal to other.
Returns true
if self
is greater than or equal to other.
Returns true
if self
is greater than or equal to other.
Returns true
if self
is greater than or equal to other.
Returns the result of performing a bitwise XOR of self
's and other's bits.
Returns the result of performing a bitwise XOR of self
's and other's bits.
Returns the result of performing a bitwise XOR of self
's and other's bits.
Returns the result of performing a bitwise XOR of self
's and other's bits.
Returns the result of performing a bitwise XOR of self
's and other's bits.
Returns the result of performing a bitwise XOR of self
's and other's bits.
Returns the result of performing a bitwise XOR of self
's and other's bits.
Returns the result of performing a bitwise XOR of self
's and other's bits.
Returns the result of performing a bitwise XOR of self
's and other's bits.
Returns the result of performing a bitwise XOR of self
's and other's bits.
Returns the number of leading 0
-bits.
Counts 1
-bits in the binary representation of this integer.
Returns self
converted to Float64
.
Returns self
converted to Float64
.
Returns self
converted to Float32
.
Returns self
converted to Float32
.
Returns self
converted to Float64
.
Returns self
converted to Float64
.
Returns self
converted to Int32
.
Returns self
converted to Int32
.
Returns self
converted to Int128
.
Returns self
converted to Int128
.
Returns self
converted to Int16
.
Returns self
converted to Int16
.
Returns self
converted to Int32
.
Returns self
converted to Int32
.
Returns self
converted to Int64
.
Returns self
converted to Int64
.
Returns self
converted to Int8
.
Returns self
converted to Int8
.
Returns self
converted to UInt32
.
Returns self
converted to UInt32
.
Returns self
converted to UInt128
.
Returns self
converted to UInt128
.
Returns self
converted to UInt16
.
Returns self
converted to UInt16
.
Returns self
converted to UInt32
.
Returns self
converted to UInt32
.
Returns self
converted to UInt64
.
Returns self
converted to UInt64
.
Returns self
converted to UInt8
.
Returns self
converted to UInt8
.
Returns the number of trailing 0
-bits.
Returns a Char
that has the unicode codepoint of self
, without checking if this integer is in the range valid for chars (0..0x10ffff
).
Returns the result of performing a bitwise OR of self
's and other's bits.
Returns the result of performing a bitwise OR of self
's and other's bits.
Returns the result of performing a bitwise OR of self
's and other's bits.
Returns the result of performing a bitwise OR of self
's and other's bits.
Returns the result of performing a bitwise OR of self
's and other's bits.
Returns the result of performing a bitwise OR of self
's and other's bits.
Returns the result of performing a bitwise OR of self
's and other's bits.
Returns the result of performing a bitwise OR of self
's and other's bits.
Returns the result of performing a bitwise OR of self
's and other's bits.
Returns the result of performing a bitwise OR of self
's and other's bits.
Int
Int
Comparable(BigDecimal)
Comparable(BigRational)
Comparable(BigInt)
Number
Number
Number
Comparable(BigFloat)
Comparable(Number)
Value
Object
Object
Returns the result of performing a bitwise AND of self
's and other's bits.
Returns the result of performing a bitwise AND of self
's and other's bits.
Returns the result of performing a bitwise AND of self
's and other's bits.
Returns the result of performing a bitwise AND of self
's and other's bits.
Returns the result of performing a bitwise AND of self
's and other's bits.
Returns the result of performing a bitwise AND of self
's and other's bits.
Returns the result of performing a bitwise AND of self
's and other's bits.
Returns the result of performing a bitwise AND of self
's and other's bits.
Returns the result of performing a bitwise AND of self
's and other's bits.
Returns the result of performing a bitwise AND of self
's and other's bits.
Returns the result of multiplying self
and other. In case of overflow a wrapping is performed.
Returns the result of multiplying self
and other. In case of overflow a wrapping is performed.
Returns the result of multiplying self
and other. In case of overflow a wrapping is performed.
Returns the result of multiplying self
and other. In case of overflow a wrapping is performed.
Returns the result of multiplying self
and other. In case of overflow a wrapping is performed.
Returns the result of multiplying self
and other. In case of overflow a wrapping is performed.
Returns the result of multiplying self
and other. In case of overflow a wrapping is performed.
Returns the result of multiplying self
and other. In case of overflow a wrapping is performed.
Returns the result of multiplying self
and other. In case of overflow a wrapping is performed.
Returns the result of multiplying self
and other. In case of overflow a wrapping is performed.
Returns the result of adding self
and other. In case of overflow a wrapping is performed.
Returns the result of adding self
and other. In case of overflow a wrapping is performed.
Returns the result of adding self
and other. In case of overflow a wrapping is performed.
Returns the result of adding self
and other. In case of overflow a wrapping is performed.
Returns the result of adding self
and other. In case of overflow a wrapping is performed.
Returns the result of adding self
and other. In case of overflow a wrapping is performed.
Returns the result of adding self
and other. In case of overflow a wrapping is performed.
Returns the result of adding self
and other. In case of overflow a wrapping is performed.
Returns the result of adding self
and other. In case of overflow a wrapping is performed.
Returns the result of adding self
and other. In case of overflow a wrapping is performed.
Returns the result of subtracting self
and other. In case of overflow a wrapping is performed.
Returns the result of subtracting self
and other. In case of overflow a wrapping is performed.
Returns the result of subtracting self
and other. In case of overflow a wrapping is performed.
Returns the result of subtracting self
and other. In case of overflow a wrapping is performed.
Returns the result of subtracting self
and other. In case of overflow a wrapping is performed.
Returns the result of subtracting self
and other. In case of overflow a wrapping is performed.
Returns the result of subtracting self
and other. In case of overflow a wrapping is performed.
Returns the result of subtracting self
and other. In case of overflow a wrapping is performed.
Returns the result of subtracting self
and other. In case of overflow a wrapping is performed.
Returns the result of subtracting self
and other. In case of overflow a wrapping is performed.
Returns the result of multiplying self
and other. Raises OverflowError
in case of overflow.
Returns the result of multiplying self
and other. Raises OverflowError
in case of overflow.
Returns the result of multiplying self
and other. Raises OverflowError
in case of overflow.
Returns the result of multiplying self
and other. Raises OverflowError
in case of overflow.
Returns the result of multiplying self
and other. Raises OverflowError
in case of overflow.
Returns the result of multiplying self
and other. Raises OverflowError
in case of overflow.
Returns the result of multiplying self
and other. Raises OverflowError
in case of overflow.
Returns the result of multiplying self
and other. Raises OverflowError
in case of overflow.
Returns the result of multiplying self
and other. Raises OverflowError
in case of overflow.
Returns the result of multiplying self
and other. Raises OverflowError
in case of overflow.
Returns the result of adding self
and other. Raises OverflowError
in case of overflow.
Returns the result of adding self
and other. Raises OverflowError
in case of overflow.
Returns the result of adding self
and other. Raises OverflowError
in case of overflow.
Returns the result of adding self
and other. Raises OverflowError
in case of overflow.
Returns the result of adding self
and other. Raises OverflowError
in case of overflow.
Returns the result of adding self
and other. Raises OverflowError
in case of overflow.
Returns the result of adding self
and other. Raises OverflowError
in case of overflow.
Returns the result of adding self
and other. Raises OverflowError
in case of overflow.
Returns the result of adding self
and other. Raises OverflowError
in case of overflow.
Returns the result of adding self
and other. Raises OverflowError
in case of overflow.
Returns the result of subtracting self
and other. Raises OverflowError
in case of overflow.
Returns the result of subtracting self
and other. Raises OverflowError
in case of overflow.
Returns the result of subtracting self
and other. Raises OverflowError
in case of overflow.
Returns the result of subtracting self
and other. Raises OverflowError
in case of overflow.
Returns the result of subtracting self
and other. Raises OverflowError
in case of overflow.
Returns the result of subtracting self
and other. Raises OverflowError
in case of overflow.
Returns the result of subtracting self
and other. Raises OverflowError
in case of overflow.
Returns the result of subtracting self
and other. Raises OverflowError
in case of overflow.
Returns the result of subtracting self
and other. Raises OverflowError
in case of overflow.
Returns the result of subtracting self
and other. Raises OverflowError
in case of overflow.
Returns the result of performing a bitwise XOR of self
's and other's bits.
Returns the result of performing a bitwise XOR of self
's and other's bits.
Returns the result of performing a bitwise XOR of self
's and other's bits.
Returns the result of performing a bitwise XOR of self
's and other's bits.
Returns the result of performing a bitwise XOR of self
's and other's bits.
Returns the result of performing a bitwise XOR of self
's and other's bits.
Returns the result of performing a bitwise XOR of self
's and other's bits.
Returns the result of performing a bitwise XOR of self
's and other's bits.
Returns the result of performing a bitwise XOR of self
's and other's bits.
Returns the result of performing a bitwise XOR of self
's and other's bits.
Returns the number of leading 0
-bits.
Counts 1
-bits in the binary representation of this integer.
5.popcount # => 2 -15.popcount # => 29
Returns self
converted to Float64
. Raises OverflowError
in case of overflow.
Returns self
converted to Float64
. In case of overflow a wrapping is performed.
Returns self
converted to Float32
. Raises OverflowError
in case of overflow.
Returns self
converted to Float32
. In case of overflow a wrapping is performed.
Returns self
converted to Float64
. Raises OverflowError
in case of overflow.
Returns self
converted to Float64
. In case of overflow a wrapping is performed.
Returns self
converted to Int32
. Raises OverflowError
in case of overflow.
Returns self
converted to Int32
. In case of overflow a wrapping is performed.
Returns self
converted to Int128
. Raises OverflowError
in case of overflow.
Returns self
converted to Int128
. In case of overflow a wrapping is performed.
Returns self
converted to Int16
. Raises OverflowError
in case of overflow.
Returns self
converted to Int16
. In case of overflow a wrapping is performed.
Returns self
converted to Int32
. Raises OverflowError
in case of overflow.
Returns self
converted to Int32
. In case of overflow a wrapping is performed.
Returns self
converted to Int64
. Raises OverflowError
in case of overflow.
Returns self
converted to Int64
. In case of overflow a wrapping is performed.
Returns self
converted to Int8
. Raises OverflowError
in case of overflow.
Returns self
converted to Int8
. In case of overflow a wrapping is performed.
Returns self
converted to UInt32
. Raises OverflowError
in case of overflow.
Returns self
converted to UInt32
. In case of overflow a wrapping is performed.
Returns self
converted to UInt128
. Raises OverflowError
in case of overflow.
Returns self
converted to UInt128
. In case of overflow a wrapping is performed.
Returns self
converted to UInt16
. Raises OverflowError
in case of overflow.
Returns self
converted to UInt16
. In case of overflow a wrapping is performed.
Returns self
converted to UInt32
. Raises OverflowError
in case of overflow.
Returns self
converted to UInt32
. In case of overflow a wrapping is performed.
Returns self
converted to UInt64
. Raises OverflowError
in case of overflow.
Returns self
converted to UInt64
. In case of overflow a wrapping is performed.
Returns self
converted to UInt8
. Raises OverflowError
in case of overflow.
Returns self
converted to UInt8
. In case of overflow a wrapping is performed.
Returns the number of trailing 0
-bits.
Returns a Char
that has the unicode codepoint of self
, without checking if this integer is in the range valid for chars (0..0x10ffff
).
You should never use this method unless chr
turns out to be a bottleneck.
97.unsafe_chr # => 'a'
Returns the result of performing a bitwise OR of self
's and other's bits.
Returns the result of performing a bitwise OR of self
's and other's bits.
Returns the result of performing a bitwise OR of self
's and other's bits.
Returns the result of performing a bitwise OR of self
's and other's bits.
Returns the result of performing a bitwise OR of self
's and other's bits.
Returns the result of performing a bitwise OR of self
's and other's bits.
Returns the result of performing a bitwise OR of self
's and other's bits.
Returns the result of performing a bitwise OR of self
's and other's bits.
Returns the result of performing a bitwise OR of self
's and other's bits.
Returns the result of performing a bitwise OR of self
's and other's bits.
© 2012–2020 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.35.1/Int16.html