2008 Apr 29 7:09 PM
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.
2008 Apr 29 7:14 PM
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,
2008 Apr 29 7:37 PM
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