Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Main {
- public static void main(String argv[]) {
- String pi_string = "3.14159265358979323846264338327950288419716939937510";
- double pi_double = 3.14159265358979323846264338327950288419716939937510;
- float pi_float = (float)3.14159265358979323846264338327950288419716939937510;
- System.out.println("As string: " + pi_string);
- System.out.println("As double: " + pi_double);
- System.out.println("As float: " + pi_float);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement