Numbers

Slide navigation: Forward with space bar, , or PgDn. Backwards with or PgUp.

Number Literals

Number Functions and Methods

Constants

Static Math Functions

abs, sign, min, max min and max any number of arguments
random Random number 0 ≤ r < 1
round, trunc, floor, ceil Applied to -3.9 yield -4, -3, -4, -3
Also fround, ftrunc, ffloor, fceil
pow, exp, expm1, log, log2, log10, log1p, `x^y`, `e^x`, `e^x-1`, `log x`, `log_2 x`, `log_10 x`, `log(x + 1)`
sqrt, cbrt, hypot `sqrt x`, `root{3} x`, `sqrt(x^2+y^2)`
sin, cos, tan, asin, acos, atan, atan2 Trigonometric functions
sinh, cosh, tanh, asinh, acosh, atanh Hyperbolic functions
imul, clz32 32 bit integer multiplication, count leading zeroes

Big Integers

Dates

Constructing Dates

Constructing Calendar Dates

Static Date Functions

Getters and Setters

Date Formatting

End of Lesson 5