Hello everybody.
I have to store REAL value in register 5.
My real value is 5.000e-1 , but i want a REAL value in form 0.5
How can I do that?
You can see in picture what is my problem.
Thanks.
Hello everybody.
I have to store REAL value in register 5.
My real value is 5.000e-1 , but i want a REAL value in form 0.5
How can I do that?
You can see in picture what is my problem.
Thanks.
Use the CNV_STR_REAL built it. Reading its description, it looks like it can accept scientific notation.
example:
GET_REG(2,r_flg, i_val, r_val, status) --Get R[2] value
CNV_REAL_STR(r_val, 7, 2, r2_val)
WRITE tpdisplay ('E=',r2_val,CR)