This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ceating Wrapper Objects -- Float Constructor

 
Reddy Yeluru
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Per table 6.2 and the associated discussions of Kathy and Bret's book, the constuctor for creating Float object takes only float value or a String value. There is one more overloaded constructor that takes double value. Is it a typo or is there any idea in skipping this construcor.
Authors -- Please comment.
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Reddy Yeluru:
Per table 6.2 and the associated discussions of Kathy and Bret's book, the constuctor for creating Float object takes only float value or a String value. There is one more overloaded constructor that takes double value. Is it a typo or is there any idea in skipping this construcor.
Authors -- Please comment.

I'm not an author but this is what table 6.2 in my book (page 377) says:
float
wrapper class : Float
Constructor arguments: float, double, or string
 
Reddy Yeluru
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My copy does not have it.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic