flotter à int python
pi = 3.14159
print(int(pi))
#This finds the ceiling of the float value provided
Rick Astley
pi = 3.14159
print(int(pi))
#This finds the ceiling of the float value provided
int i = Math.round(f); // f a float
int a = (int)float1
float1=1.2345
int1=int(float1)
/**
* Java Program - Convert Int to Float
*/
public class IntToFloat {
public static void main(String[] args) {
int i = 0x40000085;
float f = Float.intBitsToFloat(i);
System.out.println(f);
}
}
print int(2.3) # "2"
print int(math.sqrt(5)) # "2"