3:29 pm - Saturday June 21, 7519

Math Example Program for nextUp(float f)

CANDID INDUSTRIAL TRAINING -- CHENNAI
Corporate Training for Experienced Candidate
Struts | Hibernate | Spring | Java / J2EE
SOAP | RestFull | Design Pattern | more...
Ph: +91 72000 69003
137b, 2nd st, shanthi nagar, Chrompet, Chennai -600044
/**
@AUTHOR: candid java.com
@DESCRIPTION: coding for  get the next  float larger  than the given float value
*/

public class NextUp
{
 public static void main(String args[])
  {
       float f=97.33f;
       System.out.println(Math.nextUp(f));//Returns the next floatlarger than f.
  }
}

OUTPUT:
97.33001

BACK

Filed in: Z-A All Java Codes

Comments are closed.