POWER
math
What changes
- Input
- numeric arguments
- Output or change
- numeric value
- Return type
- The return type depends on the input type of float_expression: Input type Return type float, real float decimal(p, s) decimal(38, s) int, smallint, tinyint int bigint bigint money, smallmoney money bi
Syntax at a glance
POWER ( float_expression , y )
Work example
Raise a number to a power in a controlled numeric calculation.
Check the return type and expected range before using the result in exact financial arithmetic.
Check your work POWER can overflow the return type for large values or exponents.
Practice SQL
Open in SQL FlowSELECT POWER(CAST(2 AS int), 5) AS result;
Open Microsoft Learn for full syntax, permissions, and details for your version.