Application Development and Automation 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: 
Read only

Exponential number

Former Member
0 Likes
651

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
Read only

Former Member
0 Likes
589

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

3 REPLIES 3
Read only

Former Member
0 Likes
590

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

Read only

0 Likes
589

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.

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
589

Try to assign to a type F field.

Regards,

Rich Heilman