gistfile1.txt if(str.charAt(str.length()-1)=='f'||str.charAt(str.length()-1)=='F'){System.out.println(MathDemo.round(Float.parseFloat(str))+"f");}else {System.out.println(MathDemo.round(Double.parseDouble(str)));}
if(str.charAt(str.length()-1)=='f'||str.charAt(str.length()-1)=='F'){ System.out.println(MathDemo.round(Float.parseFloat(str))+"f"); }else { System.out.println(MathDemo.round(Double.parseDouble(str))); }