Java Double intValue() methodThe intValue() method of Java Double class returns the value of this Double as an int by narrowing the primitive values or by casting to type int. SyntaxParametersNA Return valueThe intValue() method returns the double value which has been converted to type int. Example 1Test it NowOutput: Enter your double value number 678.789 Int value of 678.789 = 678 Example 2Test it NowOutput: Enter two number 23.8 0.98 Multiplication of decimal no = 23.324 Multiplication integer values = 0
Next TopicJava Double
|