BigQuery
Math35 fungsi

Fungsi Math BigQuery

Fungsi matematika dan numerik. Temukan semua 35 fungsi math di BigQuery lengkap dengan syntax, contoh, dan penjelasan bahasa Indonesia.

35 fungsi math di BigQuery

← Semua fungsi BigQuery

ABS

Math

Returns the absolute (positive) value of a numeric input.

Tipe hasil: Same as input type

ACOS

Math

Menghitung arc cosinus (inverse cosine) - sudut dalam radian yang memiliki cosinus x.

Tipe hasil: FLOAT64

ASIN

Math

Menghitung arc sinus (inverse sine) - sudut dalam radian yang memiliki sinus x.

Tipe hasil: FLOAT64

ATAN

Math

Menghitung arc tangen (inverse tangent) - sudut dalam radian yang memiliki tangen x.

Tipe hasil: FLOAT64

ATAN2

Math

Menghitung arc tangen dari y/x dengan mempertimbangkan kuadran. Lebih akurat dari ATAN(y/x).

Tipe hasil: FLOAT64

BIT_COUNT

Math

Menghitung jumlah bit yang bernilai 1 dalam representasi binary.

Tipe hasil: INT64

CEIL

Math

Rounds a number up to the nearest integer greater than or equal to the input.

Tipe hasil: Same as input type

CEILING

Math

Alias for CEIL. Rounds a number up to the nearest integer.

Tipe hasil: Same as input type

COS

Math

Menghitung nilai cosinus dari sudut dalam radian.

Tipe hasil: FLOAT64

COT

Math

Menghitung nilai cotangen dari sudut dalam radian (1/TAN).

Tipe hasil: FLOAT64

DEGREES

Math

Mengkonversi sudut dari radian ke derajat.

Tipe hasil: FLOAT64

DIV

Math

Performs integer division (floor division), discarding the remainder.

Tipe hasil: INT64 or NUMERIC

EXP

Math

Calculates e raised to the power of the expression (e^x), where e ≈ 2.71828.

Tipe hasil: FLOAT64

FLOOR

Math

Rounds a number down to the nearest integer less than or equal to the input.

Tipe hasil: Same as input type

GREATEST

Math

Mengembalikan nilai terbesar dari daftar ekspresi.

Tipe hasil: Same as input type

IEEE_DIVIDE

Math

Performs division following the IEEE 754 standard, returning infinity or NaN instead of an error.

Tipe hasil: FLOAT64

LEAST

Math

Mengembalikan nilai terkecil dari daftar ekspresi.

Tipe hasil: Same as input type

LN

Math

Calculates the natural logarithm (base e) of a number.

Tipe hasil: FLOAT64

LOG

Math

Calculates the logarithm with a configurable base.

Tipe hasil: FLOAT64

LOG10

Math

Calculates the base-10 logarithm (common logarithm).

Tipe hasil: FLOAT64

MOD

Math

Returns the remainder of dividing two numbers (modulo operation).

Tipe hasil: Same as input type

POWER

Math

Calculates base raised to the power of exponent (base^exponent).

Tipe hasil: FLOAT64

RADIANS

Math

Mengkonversi sudut dari derajat ke radian.

Tipe hasil: FLOAT64

RAND

Math

Generates a random number between 0 (inclusive) and 1 (exclusive).

Tipe hasil: FLOAT64

ROUND

Math

Rounds a number to the specified decimal precision using the half-away-from-zero rounding method.

Tipe hasil: Same as input type

SAFE_ADD

Math

Melakukan penjumlahan aman yang mengembalikan NULL jika overflow.

Tipe hasil: Same as input

SAFE_DIVIDE

Math

Performs safe division that returns NULL instead of an error when the divisor is zero.

Tipe hasil: FLOAT64

SAFE_MULTIPLY

Math

Melakukan perkalian aman yang mengembalikan NULL jika terjadi overflow.

Tipe hasil: Same as input

SAFE_NEGATE

Math

Mengembalikan negasi (nilai negatif) secara aman, NULL jika overflow.

Tipe hasil: Same as input

SAFE_SUBTRACT

Math

Melakukan pengurangan aman yang mengembalikan NULL jika overflow.

Tipe hasil: Same as input

SIGN

Math

Returns the sign of a number: -1, 0, or 1.

Tipe hasil: INT64 or FLOAT64

SIN

Math

Menghitung nilai sinus dari sudut dalam radian.

Tipe hasil: FLOAT64

SQRT

Math

Calculates the square root of a number.

Tipe hasil: FLOAT64

TAN

Math

Menghitung nilai tangen dari sudut dalam radian.

Tipe hasil: FLOAT64

TRUNC

Math

Truncates a number to the specified precision without rounding (truncation toward zero).

Tipe hasil: Same as input type