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

My program is dump during number convertion

Former Member
0 Likes
452

this is the sample code for getting for dump.

-

-


Data : tmp_p type p decimals 3,

Tmp_d (6),

Tmp_I = 2.

Tmp_p = (t_komv-kwert/t_komv-kawrt)*1000. -

-


>result is 59.96

If tmp_I eq 2

Divide tmp_p by 10.----

-


result is 5.99

Write tmp_p decimals 2 to tmp_d.àthe result is 6

Move tmp_d to tmp_p.

I have one problem to executing this.this goes to dump number conversion.

-

-


what r the reason to getting the dump.

olease suggest me to execute properlly.

Sai.

this is the sample code for getting for dump.

-

-


Data : tmp_p type p decimals 3,

Tmp_d (6),

Tmp_I = 2.

Tmp_p = (t_komv-kwert/t_komv-kawrt)*1000. -

-


>result is 59.96

If tmp_I eq 2

Divide tmp_p by 10.----

-


result is 5.99

Write tmp_p decimals 2 to tmp_d.àthe result is 6

Move tmp_d to tmp_p.

I have one problem to executing this.this goes to dump number conversion.

-

-


what r the reason to getting the dump.

olease suggest me to execute properlly.

Sai.

2 REPLIES 2
Read only

Former Member
0 Likes
432

Hello,

tmp_d probably has a value that not is a number. If it's initial his value is spaces and you need to move zeros to it before move it to tmp_p.

Regards,

Read only

Former Member
0 Likes
432

Hi,

It is possible that tmp_d is with "6,00", because it is a char variable. In this case you can replace ',' with '.' fom tmp_d and then move to tmp_p.

Regards,

Fernando