For this Question: You are given an integer A and a floating point number B, upto exactly two decimal places. Compute their product, truncate its fractional part, and print the result as an integer.Since this will be a functional problem, you don't have to take input. You just have to complete the function solve() that takes an integer and a float as arguments.

<b>Constraints</b>
0<=A<=2 x 10<sup>15</sup>
0<=B<sub>i</sub><=10Return the product after truncating the fractional part.Sample Input:
155
2.41

Sample Output:
373

The result is 373.55, after truncating the fractional part, we get 373., I have written this Solution Code: class Solution {
    long solve(long a, double b) {
        b = b*100 ;
        return (a*(long)b)/100 ;
    }
}
, In this Programming Language: Java, Now tell me if this Code is compilable or not?