Do you know where your variables are? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
What Every Computer Scientist Should Know About Floating-Point Arithmetic In this case, the code outputs (on my computer, it's platform dependent)
You are getting different numbers because you are dealing with different numbers. If you need absolute precision, there are ways to handle it, but they are generally not worth the effort it takes to implement them. #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way. In reply to Re: Printf/Sprintf Behavior Change
by kennethk
|
|