It is probably how you are displaying them out. If you use printf %d then will lose decimal points if any ( does not affect the variables only the display).
Here is simple script: my $aa = 1.0101; my $bb = 2.20202; my $cc = $aa + $bb; printf "%-s %-s %-s\n", $aa, $bb, $cc; Output: 1.0101 2.20202 3.21212 Wags ;) -----Original Message----- From: Cleiton L. Siqueira [mailto:cleiton@;colegiomonjolo.com.br] Sent: None To: [EMAIL PROTECTED] Subject: Stupid doubt! Dear, I've tried to add two variables, but the result isn't right. Because when Perl add the both it removes the decimal numbers from the each variable. How can I add these variables in perl? Thanks, Cleiton L. Siqueira Colégio Monjolo [EMAIL PROTECTED] (0xx45) 520-1915 Esta mensagem foi enviada pelo sistema MONJOLO WEBMAIL http://www.colegiomonjolo.com.br -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ********************************************************** This message contains information that is confidential and proprietary to FedEx Freight or its affiliates. It is intended only for the recipient named and for the express purpose(s) described therein. Any other use is prohibited. **************************************************************** -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]