LOG10 in JS
Description
Returns the base 10 logarithm of a number (JavaScript LOG10 function Documentation).
Sample Source Pattern
Syntax
Math.log10( expression )Arguments
expression: Numeric expression. It must be positive, otherwise returns NaN.\
Return Type
Same data type sent through parameter as a numeric expression.
Examples
CREATE OR REPLACE FUNCTION compute_log10(argument float)
RETURNS float
LANGUAGE JAVASCRIPT
AS
$$
return Math.log10(ARGUMENT);
$$
;
SELECT COMPUTE_LOG10(7.5);COMPUTE_LOG10(5)|
----------------+
0.6989700043|Known Issues
No issues were found.
Related EWIs
No related EWIs.
Last updated
