Sep 13, 2010, 4:32 AM
Post #3 of 4
Ah I see, thanks for that Bill.
Is that true for all programming languages then? It must cause problems - I have files with thousands of depth points (from oil well logging), and need to know that each depth point has a standard increment (eg each progressive depth point might be 0.1524m deeper than the previous one). If just one depth point in the file is 0.15240001m deeper, the file has an irregular sample rate and is then difficult to deal with. If every depth point increases by exactly 0.1524, then its regularly sampled.
If I was to printf to four decimal places, I wouldnt know that the above depth point of 0.15240001m was irregular, but if I dont printf, Perl wont give me the true depth increment. Surely this has been dealt with by now, it must appply to a million things!