Real numbers 
Author Message
 Real numbers

Hi,

        I am a newbie programmer in perl, I am sorry if that question is
        silly...
I have write the next:

$cutup = 0.5

and after I use this variable but its value is 0.50000000022351741791, why???
How could I do?? It's very important the precision to me

Thanks in advance.

Miguel



Sun, 23 Nov 1997 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. rounding real numbers

2. How to convert real numbers

3. Need method to round real number to two decimal places

4. ROUNDING real numbers in perl

5. truncate a real number

6. Truncating digits of real numbers

7. Problems with real number arithmetic

8. Real number data validation

9. How to test if a variable is a real number?

10. Generating Real Random Numbers?

11. Converting from a Real 64 number in hex

12. real stupid real quick win95/perl ??

 

 
Powered by phpBB® Forum Software