test_class.file: hydrograph.engine/hydrograph.engine.transformation/src/test/java/hydrograph/engine/transformation/standardfunctions/NumericFunctionsTest.java
test_class.identifier: NumericFunctionsTest
test_case.body: @Test
      public void testTruncate() {
          Double result1 = NumericFunctions.truncate(1.219, 2);
          Double result2 = NumericFunctions.truncate(123.456, 1);
          Assert.assertEquals(result1, new Double(1.21));
          Assert.assertEquals(result2, new Double(123.4));
      }
test_case.class_method_signature: NumericFunctionsTest.testTruncate()
test_case.full_signature: @Test public void testTruncate()
test_case.identifier: testTruncate
test_case.invocations: truncate truncate assertEquals assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testTruncate()
focal_class.file: hydrograph.engine/hydrograph.engine.transformation/src/main/java/hydrograph/engine/transformation/standardfunctions/NumericFunctions.java
focal_class.identifier: NumericFunctions
focal_class.class_method_signature: NumericFunctions.decimalStrip(T inputValue)
focal_class.full_signature: @SuppressWarnings("unchecked") @Deprecated public static T decimalStrip(T inputValue)
focal_class.identifier: decimalStrip
focal_class.modifiers: @SuppressWarnings("unchecked") @Deprecated public static
focal_class.parameters: (T inputValue)
focal_class.return: T
focal_class.signature: T decimalStrip(T inputValue)
focal_class.class_method_signature: NumericFunctions.decimalStrip(String inputValue)
focal_class.full_signature: public static String decimalStrip(String inputValue)
focal_class.identifier: decimalStrip
focal_class.modifiers: public static
focal_class.parameters: (String inputValue)
focal_class.return: String
focal_class.signature: String decimalStrip(String inputValue)
focal_class.class_method_signature: NumericFunctions.decimalStrip(T inputValue, T decimal_point)
focal_class.full_signature: @SuppressWarnings("unchecked") @Deprecated public static T decimalStrip(T inputValue, T decimal_point)
focal_class.identifier: decimalStrip
focal_class.modifiers: @SuppressWarnings("unchecked") @Deprecated public static
focal_class.parameters: (T inputValue, T decimal_point)
focal_class.return: T
focal_class.signature: T decimalStrip(T inputValue, T decimal_point)
focal_class.class_method_signature: NumericFunctions.decimalStrip(String inputValue, String decimal_point)
focal_class.full_signature: public static String decimalStrip(String inputValue, String decimal_point)
focal_class.identifier: decimalStrip
focal_class.modifiers: public static
focal_class.parameters: (String inputValue, String decimal_point)
focal_class.return: String
focal_class.signature: String decimalStrip(String inputValue, String decimal_point)
focal_class.class_method_signature: NumericFunctions.mathAbs(T inputValue)
focal_class.full_signature: @SuppressWarnings("unchecked") public static T mathAbs(T inputValue)
focal_class.identifier: mathAbs
focal_class.modifiers: @SuppressWarnings("unchecked") public static
focal_class.parameters: (T inputValue)
focal_class.return: T
focal_class.signature: T mathAbs(T inputValue)
focal_class.class_method_signature: NumericFunctions.random(T n)
focal_class.full_signature: public static Integer random(T n)
focal_class.identifier: random
focal_class.modifiers: public static
focal_class.parameters: (T n)
focal_class.return: Integer
focal_class.signature: Integer random(T n)
focal_class.class_method_signature: NumericFunctions.getDoubleFromComparable(T inputValue)
focal_class.full_signature: public static Double getDoubleFromComparable(T inputValue)
focal_class.identifier: getDoubleFromComparable
focal_class.modifiers: public static
focal_class.parameters: (T inputValue)
focal_class.return: Double
focal_class.signature: Double getDoubleFromComparable(T inputValue)
focal_class.class_method_signature: NumericFunctions.toDouble(Float inputValue)
focal_class.full_signature: public static Double toDouble(Float inputValue)
focal_class.identifier: toDouble
focal_class.modifiers: public static
focal_class.parameters: (Float inputValue)
focal_class.return: Double
focal_class.signature: Double toDouble(Float inputValue)
focal_class.class_method_signature: NumericFunctions.toDouble(Integer inputValue)
focal_class.full_signature: public static Double toDouble(Integer inputValue)
focal_class.identifier: toDouble
focal_class.modifiers: public static
focal_class.parameters: (Integer inputValue)
focal_class.return: Double
focal_class.signature: Double toDouble(Integer inputValue)
focal_class.class_method_signature: NumericFunctions.toDouble(String inputValue)
focal_class.full_signature: public static Double toDouble(String inputValue)
focal_class.identifier: toDouble
focal_class.modifiers: public static
focal_class.parameters: (String inputValue)
focal_class.return: Double
focal_class.signature: Double toDouble(String inputValue)
focal_class.class_method_signature: NumericFunctions.toDouble(Long inputValue)
focal_class.full_signature: public static Double toDouble(Long inputValue)
focal_class.identifier: toDouble
focal_class.modifiers: public static
focal_class.parameters: (Long inputValue)
focal_class.return: Double
focal_class.signature: Double toDouble(Long inputValue)
focal_class.class_method_signature: NumericFunctions.toDouble(Short inputValue)
focal_class.full_signature: public static Double toDouble(Short inputValue)
focal_class.identifier: toDouble
focal_class.modifiers: public static
focal_class.parameters: (Short inputValue)
focal_class.return: Double
focal_class.signature: Double toDouble(Short inputValue)
focal_class.class_method_signature: NumericFunctions.toDouble(BigDecimal inputValue)
focal_class.full_signature: public static Double toDouble(BigDecimal inputValue)
focal_class.identifier: toDouble
focal_class.modifiers: public static
focal_class.parameters: (BigDecimal inputValue)
focal_class.return: Double
focal_class.signature: Double toDouble(BigDecimal inputValue)
focal_class.class_method_signature: NumericFunctions.round(Float inputValue, int numberOfDigits)
focal_class.full_signature: public static Float round(Float inputValue, int numberOfDigits)
focal_class.identifier: round
focal_class.modifiers: public static
focal_class.parameters: (Float inputValue, int numberOfDigits)
focal_class.return: Float
focal_class.signature: Float round(Float inputValue, int numberOfDigits)
focal_class.class_method_signature: NumericFunctions.round(Double inputValue, int numberOfDigits)
focal_class.full_signature: public static Double round(Double inputValue, int numberOfDigits)
focal_class.identifier: round
focal_class.modifiers: public static
focal_class.parameters: (Double inputValue, int numberOfDigits)
focal_class.return: Double
focal_class.signature: Double round(Double inputValue, int numberOfDigits)
focal_class.class_method_signature: NumericFunctions.round(BigDecimal inputValue, int numberOfDigits)
focal_class.full_signature: public static BigDecimal round(BigDecimal inputValue, int numberOfDigits)
focal_class.identifier: round
focal_class.modifiers: public static
focal_class.parameters: (BigDecimal inputValue, int numberOfDigits)
focal_class.return: BigDecimal
focal_class.signature: BigDecimal round(BigDecimal inputValue, int numberOfDigits)
focal_class.class_method_signature: NumericFunctions.roundUp(Float inputValue, int numberOfDigits)
focal_class.full_signature: public static Float roundUp(Float inputValue, int numberOfDigits)
focal_class.identifier: roundUp
focal_class.modifiers: public static
focal_class.parameters: (Float inputValue, int numberOfDigits)
focal_class.return: Float
focal_class.signature: Float roundUp(Float inputValue, int numberOfDigits)
focal_class.class_method_signature: NumericFunctions.roundUp(Double inputValue, int numberOfDigits)
focal_class.full_signature: public static Double roundUp(Double inputValue, int numberOfDigits)
focal_class.identifier: roundUp
focal_class.modifiers: public static
focal_class.parameters: (Double inputValue, int numberOfDigits)
focal_class.return: Double
focal_class.signature: Double roundUp(Double inputValue, int numberOfDigits)
focal_class.class_method_signature: NumericFunctions.roundUp(BigDecimal inputValue, int numberOfDigits)
focal_class.full_signature: public static BigDecimal roundUp(BigDecimal inputValue, int numberOfDigits)
focal_class.identifier: roundUp
focal_class.modifiers: public static
focal_class.parameters: (BigDecimal inputValue, int numberOfDigits)
focal_class.return: BigDecimal
focal_class.signature: BigDecimal roundUp(BigDecimal inputValue, int numberOfDigits)
focal_class.class_method_signature: NumericFunctions.roundDown(Float inputValue, int numberOfDigits)
focal_class.full_signature: public static Float roundDown(Float inputValue, int numberOfDigits)
focal_class.identifier: roundDown
focal_class.modifiers: public static
focal_class.parameters: (Float inputValue, int numberOfDigits)
focal_class.return: Float
focal_class.signature: Float roundDown(Float inputValue, int numberOfDigits)
focal_class.class_method_signature: NumericFunctions.roundDown(Double inputValue, int numberOfDigits)
focal_class.full_signature: public static Double roundDown(Double inputValue, int numberOfDigits)
focal_class.identifier: roundDown
focal_class.modifiers: public static
focal_class.parameters: (Double inputValue, int numberOfDigits)
focal_class.return: Double
focal_class.signature: Double roundDown(Double inputValue, int numberOfDigits)
focal_class.class_method_signature: NumericFunctions.roundDown(BigDecimal inputValue, int numberOfDigits)
focal_class.full_signature: public static BigDecimal roundDown(BigDecimal inputValue, int numberOfDigits)
focal_class.identifier: roundDown
focal_class.modifiers: public static
focal_class.parameters: (BigDecimal inputValue, int numberOfDigits)
focal_class.return: BigDecimal
focal_class.signature: BigDecimal roundDown(BigDecimal inputValue, int numberOfDigits)
focal_class.class_method_signature: NumericFunctions.truncate(Float inputValue, int numberOfDigits)
focal_class.full_signature: public static Float truncate(Float inputValue, int numberOfDigits)
focal_class.identifier: truncate
focal_class.modifiers: public static
focal_class.parameters: (Float inputValue, int numberOfDigits)
focal_class.return: Float
focal_class.signature: Float truncate(Float inputValue, int numberOfDigits)
focal_class.class_method_signature: NumericFunctions.truncate(Double inputValue, int numberOfDigits)
focal_class.full_signature: public static Double truncate(Double inputValue, int numberOfDigits)
focal_class.identifier: truncate
focal_class.modifiers: public static
focal_class.parameters: (Double inputValue, int numberOfDigits)
focal_class.return: Double
focal_class.signature: Double truncate(Double inputValue, int numberOfDigits)
focal_class.class_method_signature: NumericFunctions.truncate(BigDecimal inputValue, int numberOfDigits)
focal_class.full_signature: public static BigDecimal truncate(BigDecimal inputValue, int numberOfDigits)
focal_class.identifier: truncate
focal_class.modifiers: public static
focal_class.parameters: (BigDecimal inputValue, int numberOfDigits)
focal_class.return: BigDecimal
focal_class.signature: BigDecimal truncate(BigDecimal inputValue, int numberOfDigits)
focal_class.class_method_signature: NumericFunctions.ceil(Float inputValue)
focal_class.full_signature: public static Float ceil(Float inputValue)
focal_class.identifier: ceil
focal_class.modifiers: public static
focal_class.parameters: (Float inputValue)
focal_class.return: Float
focal_class.signature: Float ceil(Float inputValue)
focal_class.class_method_signature: NumericFunctions.ceil(Double inputValue)
focal_class.full_signature: public static Double ceil(Double inputValue)
focal_class.identifier: ceil
focal_class.modifiers: public static
focal_class.parameters: (Double inputValue)
focal_class.return: Double
focal_class.signature: Double ceil(Double inputValue)
focal_class.class_method_signature: NumericFunctions.ceil(BigDecimal inputValue)
focal_class.full_signature: public static BigDecimal ceil(BigDecimal inputValue)
focal_class.identifier: ceil
focal_class.modifiers: public static
focal_class.parameters: (BigDecimal inputValue)
focal_class.return: BigDecimal
focal_class.signature: BigDecimal ceil(BigDecimal inputValue)
focal_class.class_method_signature: NumericFunctions.floor(Float number)
focal_class.full_signature: public static Float floor(Float number)
focal_class.identifier: floor
focal_class.modifiers: public static
focal_class.parameters: (Float number)
focal_class.return: Float
focal_class.signature: Float floor(Float number)
focal_class.class_method_signature: NumericFunctions.floor(Double number)
focal_class.full_signature: public static Double floor(Double number)
focal_class.identifier: floor
focal_class.modifiers: public static
focal_class.parameters: (Double number)
focal_class.return: Double
focal_class.signature: Double floor(Double number)
focal_class.class_method_signature: NumericFunctions.floor(BigDecimal number)
focal_class.full_signature: public static BigDecimal floor(BigDecimal number)
focal_class.identifier: floor
focal_class.modifiers: public static
focal_class.parameters: (BigDecimal number)
focal_class.return: BigDecimal
focal_class.signature: BigDecimal floor(BigDecimal number)
focal_class.class_method_signature: NumericFunctions.length(Integer inputValue)
focal_class.full_signature: public static Integer length(Integer inputValue)
focal_class.identifier: length
focal_class.modifiers: public static
focal_class.parameters: (Integer inputValue)
focal_class.return: Integer
focal_class.signature: Integer length(Integer inputValue)
focal_class.class_method_signature: NumericFunctions.length(Long inputValue)
focal_class.full_signature: public static Integer length(Long inputValue)
focal_class.identifier: length
focal_class.modifiers: public static
focal_class.parameters: (Long inputValue)
focal_class.return: Integer
focal_class.signature: Integer length(Long inputValue)
focal_class.class_method_signature: NumericFunctions.length(Float inputValue)
focal_class.full_signature: public static Integer length(Float inputValue)
focal_class.identifier: length
focal_class.modifiers: public static
focal_class.parameters: (Float inputValue)
focal_class.return: Integer
focal_class.signature: Integer length(Float inputValue)
focal_class.class_method_signature: NumericFunctions.length(Double inputValue)
focal_class.full_signature: public static Integer length(Double inputValue)
focal_class.identifier: length
focal_class.modifiers: public static
focal_class.parameters: (Double inputValue)
focal_class.return: Integer
focal_class.signature: Integer length(Double inputValue)
focal_class.class_method_signature: NumericFunctions.length(Short inputValue)
focal_class.full_signature: public static Integer length(Short inputValue)
focal_class.identifier: length
focal_class.modifiers: public static
focal_class.parameters: (Short inputValue)
focal_class.return: Integer
focal_class.signature: Integer length(Short inputValue)
focal_class.class_method_signature: NumericFunctions.toInteger(String inputValue)
focal_class.full_signature: public static Integer toInteger(String inputValue)
focal_class.identifier: toInteger
focal_class.modifiers: public static
focal_class.parameters: (String inputValue)
focal_class.return: Integer
focal_class.signature: Integer toInteger(String inputValue)
focal_class.class_method_signature: NumericFunctions.toFloat(String inputValue)
focal_class.full_signature: public static Float toFloat(String inputValue)
focal_class.identifier: toFloat
focal_class.modifiers: public static
focal_class.parameters: (String inputValue)
focal_class.return: Float
focal_class.signature: Float toFloat(String inputValue)
focal_class.class_method_signature: NumericFunctions.toFloat(Integer inputValue)
focal_class.full_signature: public static Float toFloat(Integer inputValue)
focal_class.identifier: toFloat
focal_class.modifiers: public static
focal_class.parameters: (Integer inputValue)
focal_class.return: Float
focal_class.signature: Float toFloat(Integer inputValue)
focal_class.class_method_signature: NumericFunctions.toFloat(Long inputValue)
focal_class.full_signature: public static Float toFloat(Long inputValue)
focal_class.identifier: toFloat
focal_class.modifiers: public static
focal_class.parameters: (Long inputValue)
focal_class.return: Float
focal_class.signature: Float toFloat(Long inputValue)
focal_class.class_method_signature: NumericFunctions.toFloat(Double inputValue)
focal_class.full_signature: public static Float toFloat(Double inputValue)
focal_class.identifier: toFloat
focal_class.modifiers: public static
focal_class.parameters: (Double inputValue)
focal_class.return: Float
focal_class.signature: Float toFloat(Double inputValue)
focal_class.class_method_signature: NumericFunctions.toFloat(BigDecimal inputValue)
focal_class.full_signature: public static Float toFloat(BigDecimal inputValue)
focal_class.identifier: toFloat
focal_class.modifiers: public static
focal_class.parameters: (BigDecimal inputValue)
focal_class.return: Float
focal_class.signature: Float toFloat(BigDecimal inputValue)
focal_class.class_method_signature: NumericFunctions.toBigdecimal(String inputValue, int scale)
focal_class.full_signature: public static BigDecimal toBigdecimal(String inputValue, int scale)
focal_class.identifier: toBigdecimal
focal_class.modifiers: public static
focal_class.parameters: (String inputValue, int scale)
focal_class.return: BigDecimal
focal_class.signature: BigDecimal toBigdecimal(String inputValue, int scale)
focal_class.class_method_signature: NumericFunctions.toBigdecimal(Integer inputValue)
focal_class.full_signature: public static BigDecimal toBigdecimal(Integer inputValue)
focal_class.identifier: toBigdecimal
focal_class.modifiers: public static
focal_class.parameters: (Integer inputValue)
focal_class.return: BigDecimal
focal_class.signature: BigDecimal toBigdecimal(Integer inputValue)
focal_class.class_method_signature: NumericFunctions.toBigdecimal(Long inputValue)
focal_class.full_signature: public static BigDecimal toBigdecimal(Long inputValue)
focal_class.identifier: toBigdecimal
focal_class.modifiers: public static
focal_class.parameters: (Long inputValue)
focal_class.return: BigDecimal
focal_class.signature: BigDecimal toBigdecimal(Long inputValue)
focal_class.class_method_signature: NumericFunctions.toBigdecimal(Float inputValue)
focal_class.full_signature: public static BigDecimal toBigdecimal(Float inputValue)
focal_class.identifier: toBigdecimal
focal_class.modifiers: public static
focal_class.parameters: (Float inputValue)
focal_class.return: BigDecimal
focal_class.signature: BigDecimal toBigdecimal(Float inputValue)
focal_class.class_method_signature: NumericFunctions.toBigdecimal(Double inputValue)
focal_class.full_signature: public static BigDecimal toBigdecimal(Double inputValue)
focal_class.identifier: toBigdecimal
focal_class.modifiers: public static
focal_class.parameters: (Double inputValue)
focal_class.return: BigDecimal
focal_class.signature: BigDecimal toBigdecimal(Double inputValue)
focal_class.class_method_signature: NumericFunctions.toBigdecimal(char[] inputValue, int scale)
focal_class.full_signature: @Deprecated public static BigDecimal toBigdecimal(char[] inputValue, int scale)
focal_class.identifier: toBigdecimal
focal_class.modifiers: @Deprecated public static
focal_class.parameters: (char[] inputValue, int scale)
focal_class.return: BigDecimal
focal_class.signature: BigDecimal toBigdecimal(char[] inputValue, int scale)
focal_class.class_method_signature: NumericFunctions.toChar(Short input)
focal_class.full_signature: public static String toChar(Short input)
focal_class.identifier: toChar
focal_class.modifiers: public static
focal_class.parameters: (Short input)
focal_class.return: String
focal_class.signature: String toChar(Short input)
focal_class.class_method_signature: NumericFunctions.toChar(Integer input)
focal_class.full_signature: public static String toChar(Integer input)
focal_class.identifier: toChar
focal_class.modifiers: public static
focal_class.parameters: (Integer input)
focal_class.return: String
focal_class.signature: String toChar(Integer input)
focal_class.class_method_signature: NumericFunctions.toChar(Long input)
focal_class.full_signature: public static String toChar(Long input)
focal_class.identifier: toChar
focal_class.modifiers: public static
focal_class.parameters: (Long input)
focal_class.return: String
focal_class.signature: String toChar(Long input)
focal_class.class_method_signature: NumericFunctions.toChar(Float input)
focal_class.full_signature: public static String toChar(Float input)
focal_class.identifier: toChar
focal_class.modifiers: public static
focal_class.parameters: (Float input)
focal_class.return: String
focal_class.signature: String toChar(Float input)
focal_class.class_method_signature: NumericFunctions.toChar(Double input)
focal_class.full_signature: public static String toChar(Double input)
focal_class.identifier: toChar
focal_class.modifiers: public static
focal_class.parameters: (Double input)
focal_class.return: String
focal_class.signature: String toChar(Double input)
focal_class.class_method_signature: NumericFunctions.toChar(BigDecimal input)
focal_class.full_signature: public static String toChar(BigDecimal input)
focal_class.identifier: toChar
focal_class.modifiers: public static
focal_class.parameters: (BigDecimal input)
focal_class.return: String
focal_class.signature: String toChar(BigDecimal input)
focal_class.class_method_signature: NumericFunctions.toChar(BigDecimal input, int scale)
focal_class.full_signature: public static String toChar(BigDecimal input, int scale)
focal_class.identifier: toChar
focal_class.modifiers: public static
focal_class.parameters: (BigDecimal input, int scale)
focal_class.return: String
focal_class.signature: String toChar(BigDecimal input, int scale)
focal_class.class_method_signature: NumericFunctions.numericRightPad(Integer input, int size, char padChar)
focal_class.full_signature: public static String numericRightPad(Integer input, int size, char padChar)
focal_class.identifier: numericRightPad
focal_class.modifiers: public static
focal_class.parameters: (Integer input, int size, char padChar)
focal_class.return: String
focal_class.signature: String numericRightPad(Integer input, int size, char padChar)
focal_class.class_method_signature: NumericFunctions.numericLeftPad(Integer input, int size, char padChar)
focal_class.full_signature: public static String numericLeftPad(Integer input, int size, char padChar)
focal_class.identifier: numericLeftPad
focal_class.modifiers: public static
focal_class.parameters: (Integer input, int size, char padChar)
focal_class.return: String
focal_class.signature: String numericLeftPad(Integer input, int size, char padChar)
focal_method.body: public static Float truncate(Float inputValue, int numberOfDigits) {
          if (inputValue == null)
              return null;
          BigDecimal bigDecimal = new BigDecimal(inputValue);
          BigDecimal roundedWithScale = bigDecimal.setScale(numberOfDigits, RoundingMode.DOWN).stripTrailingZeros();
          return roundedWithScale.floatValue();
      }
focal_method.class_method_signature: NumericFunctions.truncate(Float inputValue, int numberOfDigits)
focal_method.full_signature: public static Float truncate(Float inputValue, int numberOfDigits)
focal_method.identifier: truncate
focal_method.invocations: stripTrailingZeros setScale floatValue
focal_method.modifiers: public static
focal_method.parameters: (Float inputValue, int numberOfDigits)
focal_method.return: Float
focal_method.signature: Float truncate(Float inputValue, int numberOfDigits)