Class ArithmeticFunctions
java.lang.Object
org.apache.juneau.commons.svl.functions.ArithmeticFunctions
Arithmetic functions for the
#{...} script catalog.
All operations work on double so integer and decimal inputs compose naturally; the
result renders as a String. Integer-perfect results omit the decimal point (e.g.
add(2, 3) returns "5", not "5.0").
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class#{abs(a)}— returns the absolute value ofa.static class#{add(a, b)}— returnsa + b.static class#{divide(a, b)}— returnsa / b.static class#{max(a, b)}— returns the larger of two numbers.static class#{min(a, b)}— returns the smaller of two numbers.static class#{modulo(a, b)}— returnsa % b.static class#{multiply(a, b)}— returnsa * b.static class#{subtract(a, b)}— returnsa - b. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Class<? extends VarFunction>[]All function classes in this category. -
Method Summary
-
Field Details
-
ALL
All function classes in this category.
-