Product
See javadoc - uk.gov.gchq.koryphe.impl.binaryoperator.Product
Available since Koryphe version 1.0.0
Calculates the product of 2 numbers
Examples
Product
Java
JSON
Full JSON
final Product product = new Product();
{
"class" : "Product"
}
{
"class" : "uk.gov.gchq.koryphe.impl.binaryoperator.Product"
}
Input type:
java.lang.Number
Example inputs:
Input Type | Inputs | Result Type | Result |
---|---|---|---|
java.lang.Long | 20 and 3 | java.lang.Long | 60 |
java.lang.Integer | 300 and 400 | java.lang.Integer | 120000 |
java.lang.Double | 0.0 and 3.0 | java.lang.Double | 0.0 |
java.lang.Short | 50 and 50 | java.lang.Short | 2500 |
java.lang.Short | 500 and 500 | java.lang.Short | 32767 |
java.lang.Integer | -5 and 5 | java.lang.Integer | -25 |
java.lang.Long | 20 and null | java.lang.Long | 20 |