S
stevob
Hi all,
I was wondering if it is possible in perl to get a number to have
exactly two decimal places (like xx.xx). I read about Number::Format,
but that is not available for me to use. I also know you can do a
printf to display it, but I need it to be like that in the variable.
i.e. if someone enters in 12.5, i need my variable that stores it to
store 12.50 not 12.5. Same thing if it was 12, I would need it to be
12.00 stored. Is that possible? Thanks.
Stevo
I was wondering if it is possible in perl to get a number to have
exactly two decimal places (like xx.xx). I read about Number::Format,
but that is not available for me to use. I also know you can do a
printf to display it, but I need it to be like that in the variable.
i.e. if someone enters in 12.5, i need my variable that stores it to
store 12.50 not 12.5. Same thing if it was 12, I would need it to be
12.00 stored. Is that possible? Thanks.
Stevo