# MathF.Pow(Single, Single) Method

## Definition

Returns a specified number raised to the specified power.

```
public:
static float Pow(float x, float y);
```

`public static float Pow (float x, float y);`

`static member Pow : single * single -> single`

`Public Shared Function Pow (x As Single, y As Single) As Single`

#### Parameters

- x
- Single

A single-precision floating-point number to be raised to a power.

- y
- Single

A single-precision floating-point number that specifies a power.

#### Returns

The number `x`

raised to the power `y`

.

## Remarks

The following table indicates the return value when various values or ranges of values are specified for the `x`

and `y`

parameters. For more information, see Single.PositiveInfinity, Single.NegativeInfinity, and Single.NaN.

Parameters | Return value |
---|---|

`x` or `y` = `NaN` . |
`NaN` |

`x` = Any value except `NaN` ; `y` = 0. |
1 |

`x` = `NegativeInfinity` ; `y` < 0. |
0 |

`x` = `NegativeInfinity` ; `y` is a positive odd integer. |
`NegativeInfinity` |

`x` = `NegativeInfinity` ; `y` is positive but not an odd integer. |
`PositiveInfinity` |

`x` < 0 but not `NegativeInfinity` ; `y` is not an integer, `NegativeInfinity` , or `PositiveInfinity` . |
`NaN` |

`x` = -1; `y` = `NegativeInfinity` or `PositiveInfinity` . |
`NaN` |

-1 < `x` < 1; `y` = `NegativeInfinity` . |
`PositiveInfinity` |

-1 < `x` < 1; `y` = `PositiveInfinity` . |
0 |

`x` < -1 or `x` > 1; `y` = `NegativeInfinity` . |
0 |

`x` < -1 or `x` > 1; `y` = `PositiveInfinity` . |
`PositiveInfinity` |

`x` = 0; `y` < 0. |
`PositiveInfinity` |

`x` = 0; `y` > 0. |
0 |

`x` = 1; `y` is any value except `NaN` . |
1 |

`x` = `PositiveInfinity` ; `y` < 0. |
0 |

`x` = `PositiveInfinity` ; `y` > 0. |
`PositiveInfinity` |