StrictMath.multiplyHigh(): This method is available in java.lang.StrictMath class of Java.
Syntax:
long java.lang.StrictMath.multiplyHigh(long x, long y)
This method takes two arguments of type long as its parameters. This method Returns as a long the most significant 64 bits of the 128-bit product of two 64-bit factors.
Parameters: Two parameters are required for this method.
x: the first value.
y: the second value.
Returns: the result.
Exceptions: NA
Approach
Java
public class StrictMathmultiplyHigh {public static void main(String[] args) {long x = 186, y = 19;System.out.println(StrictMath.multiplyHigh(x, y));}}
Output:
0
No comments:
Post a Comment