• Post Reply Bookmark Topic Watch Topic
  • New Topic

Converting a double to a long  RSS feed

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, i an trying to convert a double to a long but i can't seem to find any methods that do this in the api (looked in double and long).I know a long holds less then a double but is there a way to do the conversion anyway?

Thanks
 
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java Language Specification. I think you want section 5.1.3.
 
Campbell Ritchie
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by vinoth thirunavukarasu:
http://letmegooglethatforyou.com/?q=convert+double+to+long


There's some useful stuff on some of those links, but some of the links don't apply directly to Java.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!