Hello,

I have a situation where I recieve numerical input from the user and would
like to do the following:

If I receive a 2 digit number, I would like to add a decimal in front of it,
so that 22 will be .22

If I receive any other number, the decimal will be two places from the
right, so that 113 wil be 1.13 and 1045 will be 10.45

Any help will be appreciated.

--Kevin

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to