[Chicago-talk] isolating the values to right and left of the decimal

Richard Reina richard at rushlogistics.com
Sat Jan 5 13:36:48 PST 2008

After over an hour of googling and searching in my Lama, Camel and Ram books I still am unable to find a way to convert

13.32 to: thirteen hours and nineteen minutes

my $time_sring = 13.32;

my $hrs = sprintf "%0d", $time_string;  # works. I get 13

but I can't figure out how to get .32 so that I can multiply it time 60 and then round it so that I can print out:

thirteen hours and nineteen minutes

Any help would be greatly appreciated.



Your beliefs become your thoughts.  Your thoughts become your words.  Your words become your actions.  Your actions become your habits.  Your habits become your values.  Your values become your destiny.  -- Mahatma Gandhi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20080105/890550cf/attachment.html 

More information about the Chicago-talk mailing list