rss
Twitter Delicious Facebook Digg Stumbleupon Favorites
Showing posts with label largest. Show all posts
Showing posts with label largest. Show all posts

Friday, October 7, 2011

A program that will read a float type value

class ValueRead{

  public static void main(String args[]){
       double i = 34.32;
System.out.println("Small Int. not greater than the no. : "+Math.ceil(i));
    System.out.println("Given Number : "+i);
System.out.println("Largest Int. not greater than the no. : "+Math.floor(i));
  }
Powered by Blogger.