If you try to run the following code
public class Main { public static void main(String[] args) { long a = (long)Math.pow(13, 15); System.ou
A double has finite precision, its mantissa is 52 bits, which roughly equals 15 to 16 decimals. So the number you're trying to calculate can't be represented (exactly) by a double any more.