Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About single and package

 
Wesley Tai
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a question.
Can I use 'single' to take place with the type "float"?
~=package,do anybody use it?
Thank you.
 
Nicolaas van Rensburg
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I know, you can use the 'single' keyword with any basic classes such as int, char, double etc. What class are you querying on?
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys,

First, there's no "single" keyword. The floating-point types are "float" and "double."

Second, yes, everyone uses packages; you pretty much shouldn't write any code that's not in a package.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic