CodeQL library for JavaScript/TypeScript
codeql/javascript-all 2.2.1-dev (changelog, source)
Search

Primitive type int

The primitive type of integers, represented with 32 bits using two’s complement.

Direct supertypes

Predicates

abs

Returns the absolute value of the receiver (or INT_MIN when the receiver is INT_MIN)

acos

Returns the inverse cosine of the receiver

asin

Returns the inverse sine of the receiver

atan

Returns the inverse tangent of the receiver

bitAnd

Returns the bitwise and of the receiver and the argument

bitNot

Returns the bitwise complement of the receiver

bitOr

Returns the bitwise or of the receiver and the argument

bitShiftLeft

Returns the bitwise left shift of the receiver by the argument

bitShiftRight

Returns the unsigned bitwise right shift of the receiver by the argument

bitShiftRightSigned

Returns the signed bitwise right shift of the receiver by the argument

bitXor

Returns the bitwise xor of the receiver and the argument

cos

Returns the cosine of the receiver

cosh

Returns the hyperbolic cosine of the receiver

exp

Returns e (the base of the natural logarithm) raised to the power of the receiver

gcd

Returns the greatest common divisor of the receiver and the argument, or zero if both receiver and argument are zero, or INT_MIN if the greatest common divisor is INT_MAX+1

log

Returns the natural logarithm of the receiver

log

Returns the logarithm of the receiver in the given base

log

Returns the logarithm of the receiver in the given base

log10

Returns the base-10 logarithm of the receiver

log2

Returns the base-2 logarithm of the receiver

maximum

Returns the larger of the receiver and the argument

maximum

Returns the larger of the receiver and the argument

minimum

Returns the smaller of the receiver and the argument

minimum

Returns the smaller of the receiver and the argument

pow

Returns the receiver raised to the given power

pow

Returns the receiver raised to the given power

sin

Returns the sine of the receiver

sinh

Returns the hyperbolic sine of the receiver

sqrt

Returns the square root of the receiver

tan

Returns the tangent of the receiver

tanh

Returns the hyperbolic tangent of the receiver

toBigInt

Returns the receiver’s value as an arbitrary-range signed integer

toString

Returns a string representation of the receiver (in decimal)

toUnicode

Returns the unicode character for the receiver seen as a unicode code point

Inherited predicates

ceil

Returns the smallest integer greater than or equal to the receiver

from float
copySign

Returns the floating point number with the magnitude of the receiver and the sign of the argument.

from float
floor

Returns the largest integer that is not greater than the receiver

from float
nextAfter

Returns the number adjacent to the receiver in the direction of the argument.

from float
nextDown

Returns the number adjacent to the receiver in the direction of negative infinity.

from float
nextUp

Returns the number adjacent to the receiver in the direction of positive infinity.

from float
signum

Returns the sign of the receiver: zero if it is zero, 1.0 if it is greater than zero, -1.0 if it is less than zero.

from float
ulp

Returns the ULP (unit in last place) of the receiver.

from float