Results 1 to 4 of 4
  1. #1
    Dude10 is offline Member
    Join Date
    Nov 2014
    Posts
    6
    Rep Power
    0

    Default Math.Ceil cannot find symbol

    So every time I try to use Math.Ceil I get a message that says cannot find symbol and has a ^ pointing to the period. Anyone know why that is?

    I have used Math.Random before and it worked fine

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: Math.Ceil cannot find symbol

    Are you certain you have used Math.Random? Math.Ceil doesn't work for the same reason. Check out the Math API in the documentation. Math (Java Platform SE 8 ) And welcome to the forum!

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    12,059
    Rep Power
    25

    Default Re: Math.Ceil cannot find symbol

    Hint: Java is cASE Sensitive.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    Dude10 is offline Member
    Join Date
    Nov 2014
    Posts
    6
    Rep Power
    0

    Default Re: Math.Ceil cannot find symbol

    Quote Originally Posted by DarrylBurke View Post
    Hint: Java is cASE Sensitive.

    db
    wow I can't believe I didn't try that having questioned the capital so many types. Thanks a lot

Similar Threads

  1. Math.pow returning cannot find symbol
    By jmanv888 in forum New To Java
    Replies: 6
    Last Post: 07-09-2011, 07:29 PM
  2. Using the Math.ceil method
    By Allspark in forum New To Java
    Replies: 8
    Last Post: 09-10-2010, 05:52 AM
  3. Roundind up numbers using Math.ceil
    By Allspark in forum New To Java
    Replies: 1
    Last Post: 09-08-2010, 05:15 AM
  4. Replies: 3
    Last Post: 05-01-2008, 08:30 AM
  5. Math Class (ceil, floor, abs)
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-13-2007, 09:21 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •