Guest User

Untitled

a guest
Jan 21st, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. strictfp class StrictFPClass {
  2. double num1 = 10e+102;
  3. double num2 = 6e+08;
  4. double calculate() {
  5. return num1 + num2;
  6. }
  7. }
  8.  
  9. strictfp interface StrictFPInterface {
  10. double calculate();
  11. strictfp double compute(); // compile error
  12. }
  13.  
  14. class StrictFPMethod {
  15. strictfp double computeTotal(double x, double y) {
  16. return x + y;
  17. }
  18. }
Add Comment
Please, Sign In to add comment