Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Exponential number

Former Member
0 Kudos
120

Hi,

I have a .txt file that I'm uploading to a Z table.

In the .txt file I have some numbers like 7.77E-10 that are giving me problems when I try to assign it to a field of type DEC.

Anyone have an idea of what do I need to do to solve this problem?

1 ACCEPTED SOLUTION

Former Member
0 Kudos
58

The error that I receive is "Unable to interpret "7.77E-10" as a number"

3 REPLIES 3

Former Member
0 Kudos
59

The error that I receive is "Unable to interpret "7.77E-10" as a number"

0 Kudos
58

what you actually have is a character field that you need to convert to a float...try this:

data f type f.

data c(20) type c value '7.77E-10'.

call function 'CHAR_FLTP_CONVERSION'

exporting string = c

importing flstr = f.

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos
58

Try to assign to a type F field.

Regards,

Rich Heilman