I'm trying to perform a power calculation in Java for exponent that is less than 1, for example: (2^0.333) but when i calculate that in Java, i got a result with less precision than if i do the same calculation on a normal calculator.
in Java
double f = Math.pow(2.0,0.333);
System.out.println(f);
//output
//1.2596299799473993
in a normal calculator i got
//output
//1.2596299799473993502546921425703
how can I get the same result in java without losing precision?
any help is appreciated