Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Weird number formatting

by licking9Volts (Pilgrim)
on Mar 06, 2003 at 22:04 UTC ( #241007=note: print w/ replies, xml ) Need Help??


in reply to Weird number formatting

Thanks everyone for all your help! VSarkiss and tye mentioned it might be FORTRAN and it seemed like I'd read that somewhere already. I then went back and started to re-read the Standards for Digital Elevation Models, and in one of the appendices it list the column types as REAL*8 (FORTRAN Notation). So once again, the virtues of "RTFM" are made clearer to me. In the end, I simply substituted D for E and went on.

$inrecord =~ s/D/E/g; @info = split(' ', $inrecord); $my_x = $info[4] + 0; $my_y = $info[5] + 0;
I happened to notice that it still wouldn't consider it a "number" until I performed some kind of math function on it, so I just added 0 and everything worked fine. So once again, thanks everyone!

^l9v


Comment on Re: Weird number formatting
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://241007]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2014-08-02 06:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (55 votes), past polls