0

I am trying to get the correct value for:

double poweredValue = Math.pow((1.1),(1 / 365));

Using my scientific calculator I get 1.0002611578760678121616866817054‬. But Math.pow returns a 1.

How do I get the full value returned?

ratsstack
  • 941
  • 1
  • 10
  • 25

1 Answers1

1
double poweredValue = Math.pow((1.1),(1 / 365.0));
System.out.println(poweredValue);

Output - 1.0002611578760678

RRIL97
  • 852
  • 2
  • 9