

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 數學函數
<a name="sql-functions-math"></a>

 數學函數是 SQL 查詢中用來對數值資料執行計算的預先定義數學操作。它們提供操作和轉換資料的方法，而不需要從資料庫擷取資料並單獨處理資料。


**數學函數**  

|  **函數**  |  **Signature**  |  **Description**  | 
| --- | --- | --- | 
| `POWER` | POWER (int\|double、int\|double) | 傳回提升為第二個引數之能力的第一個引數值。 | 
| `ROUND` |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/iot-sitewise/latest/userguide/sql-functions-math.html)  | 四捨五入至最接近的整數。 | 
| `FLOOR` |  FLOOR (int\|double)  | 傳回不超過指定值的最大整數。 | 

所有 函數的範例：


|  **函數**  |  **範例**  | 
| --- | --- | 
| POWER |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/iot-sitewise/latest/userguide/sql-functions-math.html)  | 
| ROUND |  `ROUND (32.12435, 3)`  | 
| FLOOR |  `FLOOR (21.2)`  | 