Class ArithmeticEngine

    • Field Detail

      • BIGDECIMAL_ENGINE

        public static final ArithmeticEngine.BigDecimalEngine BIGDECIMAL_ENGINE
        Arithmetic engine that converts all numbers to BigDecimal and then operates on them. This is FreeMarker's default arithmetic engine.
      • CONSERVATIVE_ENGINE

        public static final ArithmeticEngine.ConservativeEngine CONSERVATIVE_ENGINE
        Arithmetic engine that uses (more-or-less) the widening conversions of Java language to determine the type of result of operation, instead of converting everything to BigDecimal up front.
      • minScale

        protected int minScale
      • maxScale

        protected int maxScale
      • roundingPolicy

        protected int roundingPolicy
    • Constructor Detail

      • ArithmeticEngine

        public ArithmeticEngine()