round static method

Value round(
  1. Object strategyOrNumber, [
  2. Object? numberOrStep,
  3. Object? step
])

Creates a round() calculation with the given strategyOrNumber, numberOrStep, and step. Strategy must be either nearest, up, down or to-zero.

Number and step must be either a SassNumber, a SassCalculation, an unquoted SassString, or a CalculationOperation.

This automatically simplifies the calculation, so it may return a SassNumber rather than a SassCalculation. It throws an exception if it can determine that the calculation will definitely produce invalid CSS.

This may be passed fewer than two arguments, but only if one of the arguments is an unquoted var() string.

Implementation

static Value round(Object strategyOrNumber,
        [Object? numberOrStep, Object? step]) =>
    roundInternal(strategyOrNumber, numberOrStep, step,
        span: null, inLegacySassFunction: null, warn: null);