I have a task from school in which I have to display numbers with potencies with the help of system out print. The problem is that all zeroes have to be displayed and that's not working for me.
Here's my code:
public class weltall {
public static void main (String [] args) {
double radius = 45*10^9; //declare variable radius
System.out.println ("the radius is "+radius+""); //outputs the value of the variable radius
} //public class weltall
} //public static void main (String [] args)
The result:
the radius is 459.0
The original number is 45 billion.