Numeric functions (Rounding and Truncation)
Returns the absolute value of a numeric expression.
Syntax¶ABS( <num_expr> )
Copy
Examples¶SELECT column1, abs(column1) FROM (values (0), (1), (-2), (3.5), (-4.5), (null)); +---------+--------------+ | COLUMN1 | ABS(COLUMN1) | |---------+--------------| | 0.0 | 0.0 | | 1.0 | 1.0 | | -2.0 | 2.0 | | 3.5 | 3.5 | | -4.5 | 4.5 | | NULL | NULL | +---------+--------------+
Copy
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4