trunc static method

Creates a function expression which truncates the given numeric expression to the given number of decimal digits.

Implementation

static ExpressionInterface trunc(
  ExpressionInterface expression, {
  ExpressionInterface? digits,
}) =>
    BinaryExpression('trunc()', expression, digits);