SQUARE

Syntax

SQUARE( number )

Description

Returns the number number raised to the power of 2.

Argument types:

  • numberFractional number | Integer

Return type: Same type as (number)

Example

[int_value][float_value]SQUARE([int_value])SQUARE([float_value])
00.000.000.00
11.001.001.00
33.009.009.00
44.0016.0016.00
1313.00169.00169.00
1616.00256.00256.00
2020.20400.00408.04
2525.00625.00625.00

Data source support

ClickHouse 21.8, Microsoft SQL Server 2017 (14.0), MySQL 5.7, Oracle Database 12c (12.1), PostgreSQL 9.3, YDB.

Previous
Next