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

perl help

 
Pho Tek
Ranch Hand
Posts: 782
Chrome Python Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a string which represents money amounts.

e.g. 111996 is equivalent to 1119.96

What's the fastest way to convert this into a double scalar ?

Thanks

Pho
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
$amount / 100

- Peter
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic