Interesting replies! It's true if you round the numbers to a single-digit whole number, 3.1416....... and 2.71828... so in Java
package EngineeringWorld;
public class Pies {
public static double roundAvoid(double value, int places) {
double scale = Math.pow(10, places);
return Math.round(value * scale) / scale;
}
public static void main(String[] args) {
double number = 3.14159265359;
double euler = 2.7182818284;
int truncP = (int) roundAvoid(number, 0);
int truncE = (int) roundAvoid(euler, 0);
System.out.println(truncP);
System.out.println(truncE);
}
}
output 3 and 3