@Test public void invokeNegative() { FunctionTestUtil.assertResultBigDecimal(ceilingFunction.invoke(BigDecimal.valueOf(-10.2)), BigDecimal.valueOf(-10)); }
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_CEILING ) ); }
CeilingFunction 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_CEILING ) ); } }
CeilingFunction 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_CEILING ) ); } CeilingFunction(); }
CeilingFunction 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_CEILING ) ); } CeilingFunction(); FEELFnResult<BigDecimal> invoke(@ParameterName( "n" ) BigDecimal n); }
CeilingFunction 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_CEILING ) ); } CeilingFunction(); FEELFnResult<BigDecimal> invoke(@ParameterName( "n" ) BigDecimal n);  }