Import/CForm
- To: mathgroup at smc.vnet.net
- Subject: [mg22605] Import/CForm
- From: bernd at bio.vu.nl (Bernd Brandt)
- Date: Tue, 14 Mar 2000 22:46:22 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Hello, I just started using Import[]. I have a strange "problem". !!myfile In := 1 7.535733e-04 2.705774e+00 2.513866e+00 In := Dat= Import["myfile", "Table"] In := Dat[[1,2]] + 1 Out := 1.00075 In := Dat[[1,3]] + 1 This cannot be evaluated, because 2.70e+00 is regarded as a word. This is output from a C program (%e format). My C program prints positive powers as qqe+xx. Mathematica CForm indeed does not include the '+'. In := CForm[0.44*10^(+10)] Out := 4.4e9 (* NOT 4.4e+09 *) Has anyone else run into this? Is seems a bit strange to have to delete al "+" from the exponent with e.g a string replace. regards, Bernd