Skip to main content
Code sample in Swift, C# and Java
Main menu
About
History
Swift
C#
Java
Python
You are here
Home
»
Forums
»
Java
»
Java: Work with simple types
»
Java: Work with numbers
»
Java: Double and float
Converting double to integer in Java
Submitted by
obraztsov
on Thu, 11/24/2016 - 17:36
Forums:
Java: Double and float
double
pi
= 3.1415926535;
int
intValue
= (
int
)
pi
;
//intValue is 3
Log in
to post comments