In PostgreSQL, exp() is a mathematical function that returns the exponential value of its argument.
functions
How Pi() Works in PostgreSQL
In PostgreSQL, the pi() function returns the number π.
π constant is a mathematical constant. It is defined as the ratio of a circle’s circumference to its diameter.
How the Degrees() Function Works in PostgreSQL
In PostgreSQL, the degrees() function converts from radians to degrees.
The radian is the SI (International System of Units) unit for measuring angles. One radian is just under 57.3 degrees, and a full circle has just over 6.28 radians (2π).
How the Radians() Function Works in PostgreSQL
In PostgreSQL, the radians() function converts from degrees to radians.
The radian is the SI (International System of Units) unit for measuring angles. One radian is just under 57.3 degrees, and a full circle has just over 6.28 radians (2π).
How Trunc() Works in PostgreSQL
In PostgreSQL, the trunc() function truncates a number.
More specifically, it truncates the number either toward zero, or to a specific number of decimal places.
How Ceiling() Works in PostgreSQL
In PostgreSQL, the ceiling() function is used for rounding a number up to the nearest integer.
It’s similar to round(), except that it only rounds up. The round() function will round up or down as required.
It’s also similar to floor(), except that floor() rounds down instead of up.
How Floor() Works in PostgreSQL
In PostgreSQL, the floor() function is used for rounding a number down to the nearest integer.
It’s basically the opposite of ceiling(), which rounds a number up.
It’s also similar to round(), except that it only rounds down. The round() function will round up or down as required.
How Round() Works in PostgreSQL
In PostgreSQL, the round() function is used for rounding a number.
The function can work in one of two ways, depending on how you use it. You can make it round the number to the nearest integer, or to a specified number of decimal places.
This is determined by the number of arguments you pass to the function when you call it.
How iif() Works in SQLite
In SQLite, iif() is a conditional function that returns the second or third argument based on the evaluation of the first argument.
It’s logically equivalent to CASE WHEN X THEN Y ELSE Z END.
iif() is an abbreviation for Immediate IF.
The iif() function was introduced in SQLite 3.32.0, which was released on 22 May 2020.