DbExpressions.DbExpressionFactory.Round C# (CSharp) Method

Round() public method

Creates a DbMathematicalFunctionExpression that represents returning a pseudo-random float value from 0 through 1, exclusive.
public Round ( DbExpression target, DbExpression precision ) : DbMathematicalFunctionExpression
target DbExpression The target that represents a numeric value.
precision DbExpression A that represents the number of decimals returned.
return DbMathematicalFunctionExpression
        public DbMathematicalFunctionExpression Round(DbExpression target, DbExpression precision)
        {
            return MakeMathematicalFunction(DbMathematicalFunctionExpressionType.Round, new[] { target, precision });
        }