EdmFunctions.Round 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Round(DbExpression) |
建立會使用指定引數叫用標準 'Round' 函式的 DbFunctionExpression,其中的引數都必須具有單精度浮點數、雙精度浮點數或十進位結果型別。 運算式的結果類型與值的結果類型相同。 |
Round(DbExpression, DbExpression) |
建立會使用指定引數叫用標準 'Round' 函式的 DbFunctionExpression,其中的引數必須具有單精度浮點數、雙精度浮點數或十進位,以及整數結果型別。 運算式的結果類型與值的結果類型相同。 |
Round(DbExpression)
建立會使用指定引數叫用標準 'Round' 函式的 DbFunctionExpression,其中的引數都必須具有單精度浮點數、雙精度浮點數或十進位結果型別。 運算式的結果類型與值的結果類型相同。
public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression Round (this System.Data.Entity.Core.Common.CommandTrees.DbExpression value);
static member Round : System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Round (value As DbExpression) As DbFunctionExpression
參數
- value
- DbExpression
運算式,指定要進位的數值。
傳回
將指定引數捨入至最接近之整數值的新 DbFunctionExpression。
適用於
Round(DbExpression, DbExpression)
建立會使用指定引數叫用標準 'Round' 函式的 DbFunctionExpression,其中的引數必須具有單精度浮點數、雙精度浮點數或十進位,以及整數結果型別。 運算式的結果類型與值的結果類型相同。
public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression Round (this System.Data.Entity.Core.Common.CommandTrees.DbExpression value, System.Data.Entity.Core.Common.CommandTrees.DbExpression digits);
static member Round : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Round (value As DbExpression, digits As DbExpression) As DbFunctionExpression
參數
- value
- DbExpression
運算式,指定要進位的數值。
- digits
- DbExpression
運算式,指定進位時要使用的精確位數。
傳回
新的 DbFunctionExpression,會將指定的引數四捨五入為最接近的整數值,有效位數如數位所指定。