square

Calculates the square of a specified value expressed as a float.

Syntax

square(numeric_expression)

Parameters

Examples

Usage

This function is the equivalent of power(numeric_expression,2), but it returns type float rather than int.

Standards

ANSI SQL – Compliance level: Transact-SQL extension.

Permissions

Any user can execute square.

Related concepts
System and User-Defined Datatypes
Related reference
power