Trying to write this script that works with inputs that often go up into hundreds of billions. However, Math.ceil won't round upwards?
int clayturns = (int)Math.ceil(clayneeded / 7500000000L);
System.out.println((int) Math.ceil(clayneeded / 7500000000L));
System.out.println("we need " + clayturns + "turns");
System.out.println("we need " + clayneeded + " clay added to our specific village.");
under here I have the eclipse console output. As you can see clayneeded isn't blank. As if that's the case then clayturns should always be something, it can't be zero, but it is.
we need 0turns
we need 3021588634 clay needed to our specific village.
Please let me know what you think. Does math ceil not work with Longs?