Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Double.POSITIVE_INFINITY

 
Doit
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am confused with this ....
Math.ceil(Double.POSITIVE_INFINITY)
Math.ceil(Integer.POSITIVE_INFINITY)
etc etc..
Can u please suggest some good pointer to look at??
- Thanks
 
Doit
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please help!!!
 
dharm rawat
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

First note down there is nothing like Integer.POSITIVE_INFINITY.

The INFINITY constants are only defined for Decimal numbers (Double and Float).

And, Float.POSITIVE_INFINITY and Double.POSITIVE_INFINITY, both are actually are the same thing. The biggest unknown number.
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello "Doit"-

Welcome to JavaRanch.

On your way in you may have missed that we have a JavaRanch Naming Policy for displayed (screen) names. Your displayed name must consist of a first name (or an initial), a space, and a family name (in that order) and not be obviously fictitious. Since yours "Doit", does not conform with it, please take a moment to change it, which you can do right here.

Posters with nonconforming displayed names will be locked out of JavaRanch after a few posts using those names.

Thanks
-Barry

(NR) - search tag
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Doit:
Please help!!!


... and please read this
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by dharm rawat:
Hi,

First note down there is nothing like Integer.POSITIVE_INFINITY.

The INFINITY constants are only defined for Decimal numbers (Double and Float).

And, Float.POSITIVE_INFINITY and Double.POSITIVE_INFINITY, both are actually are the same thing. The biggest unknown number.


What... ???
Why on earth are you responding to a 5 year old post?
 
Gareth Western
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps "doit" is still looking for help with his problem...
 
Burkhard Hassel
Ranch Hand
Posts: 1274
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also maybe the name may have changed to "didit"

Bu.
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Burkhard Hassel:
Also maybe the name may have changed to "didit"

Bu.



More likely to " " it!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic