class FloorFunction extends BaseFEELFunction {

    public FEELFnResult<BigDecimal> invoke(@ParameterName( "n" ) BigDecimal n) {
        if ( n == null ) {
            return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "n", "cannot be null"));
        }
        return FEELFnResult.ofResult( n.setScale( 0, BigDecimal.ROUND_FLOOR ) );
    }

    public  FloorFunction();

}