engineering notation literal "3e-3" turning into numbers in J -


i read csv file in j, has numbers in engineering notation, such 3e-3.

in j, can turn literal number ".

". '3e3' 3000 

and

". '3e_3' 0.003 

but how turn '3e-3' 0.003

". '3e-3' ill-formed number 

you can either guide ". forcing evaluate number giving default value:

0 ". '3e-3' 

or charsub offending character:

'-_' charsub ". '3e-3' 

i'd recommend first, execution ". potentially dangerous, forcing interpret numbers when that's what's desired best practice.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -