    class Round 
      { 
      public static void main (String args[]) 
        {
        long l;
        double d;

        d = 3.67;

        l = Math.round (d);
        System.out.println (d + " rounded is " + l);

        l = (long) Math.floor (d);
        System.out.println ("The floor of " + d + " is " + l);

        l = (long) Math.ceil (d);
        System.out.println ("The ceiling of " + d + " is " + l);
        } 
      } 

