Guest User

Java Float erros

a guest
Jun 14th, 2012
67
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  * To change this template, choose Tools | Templates
  3.  * and open the template in the editor.
  4.  */
  5. package teste;
  6.  
  7. /**
  8.  *
  9.  * @author gustavo
  10.  */
  11. public class Teste {
  12.  
  13.     /**
  14.      * @param args the command line arguments
  15.      */
  16.     public static void main(String[] args) {
  17.         System.out.print(( 139.70 ) - ( 10.0 * 13.97 ));
  18.         System.out.println();
  19.         System.out.print(Math.floor((0.1+0.7)*10));
  20.     }
  21. }
RAW Paste Data