MultiplyLongBy

See javadoc - uk.gov.gchq.koryphe.impl.function.MultiplyLongBy

Available since Koryphe version 1.9.0

Multiply the input Long by the provide number.

Examples

Multiply long by 2

Java
JSON
Full JSON
Python
final MultiplyLongBy function = new MultiplyLongBy(2L);
{
  "class" : "MultiplyLongBy",
  "by" : 2
}
{
  "class" : "uk.gov.gchq.koryphe.impl.function.MultiplyLongBy",
  "by" : 2
}
g.MultiplyLongBy( 
  by=2 
)

Input type:

java.lang.Long

Example inputs:

Input TypeInputResult TypeResult
java.lang.Long6java.lang.Long12
java.lang.Long5java.lang.Long10
nullnull
java.lang.Double6.1ClassCastException: java.lang.Double cannot be cast to java.lang.Long

results matching ""

    No results matching ""