• Post Reply Bookmark Topic Watch Topic
  • New Topic

Force string to convert to long  RSS feed

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is there a way to convert a decimal(12.4) string to a long? I have searched google and can't seem to find any examples of this, i know long is a whole number but is there a way to convert it anyway??

Thanks
 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

convert it to a Double and then to a long.

Example:


For detail, check out the Double API doc.

Regards,
Uli
 
Maja Gralewska
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Uli
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!