Package dev.frostlake.functions.scalar.math
package dev.frostlake.functions.scalar.math
-
ClassesClassDescriptionABS(n) — the absolute value of the numeric input, computed exactly over
BigDecimalso a fixed-point argument keeps its scale.ACOS(x) — inverse cosine in radians.ATANH(x) — inverse hyperbolic tangent, computed as0.5 * ln((1 + x) / (1 - x))sinceMathhas noatanh.BITCOUNT(n) — the number of set bits in the integer value.The whole number a bitwise function reads an argument as.CEIL(n [, scale]) — the input rounded UP, to whole numbers by default and toscaledecimal places when one is given.DIV0(a, b) divides like the/operator but returns 0 when the divisor is 0.FLOOR(n [, scale]) — the input rounded DOWN, to whole numbers by default and toscaledecimal places when one is given.GETBIT(integer_expr, bit_position) — the value (0 or 1) of the bit at the 0-basedbit_position, counting from the least significant bit.NEGATE(n) — the negative of the numeric input.RANDOM([seed]) — a pseudo-random signed 64-bit integer (not a fraction in [0, 1)).ROUND(n [, scale [, mode]]) — the input rounded toscaledecimal places, zero by default.The words ROUND's optional third argument takes.UNIFORM(min, max [, gen]) — a uniformly random value in the range.WIDTH_BUCKET(value, min, max, count) — which ofcountequal buckets betweenminandmaxthe value falls in, 0 below the range andcount + 1above it.