Sum

See javadoc - uk.gov.gchq.koryphe.impl.binaryoperator.Sum

Available since Koryphe version 1.0.0

Calculates the sum of 2 numbers

Examples

Sum

Java
JSON
Full JSON
Python
final Sum sum = new Sum();
{
  "class" : "Sum"
}
{
  "class" : "uk.gov.gchq.koryphe.impl.binaryoperator.Sum"
}
g.Sum()

Input type:

java.lang.Number

Example inputs:

Input TypeInputsResult TypeResult
java.lang.Long20 and 3java.lang.Long23
java.lang.Integer300 and 400java.lang.Integer700
java.lang.Double0.0 and 3.0java.lang.Double3.0
java.lang.Short50 and 50java.lang.Short100
java.lang.Short30000 and 10000java.lang.Short32767
java.lang.Integer-5 and 5java.lang.Integer0
java.lang.Long20 and nulljava.lang.Long20

results matching ""

    No results matching ""