‎2008 Dec 04 6:39 AM
Hi to all,
I have a small requirement in PM module. In IK11 tcode we r giving the measurement point reading in decimal point.But in database table it will store in exponential format.
For example. If we will give measuremetn point reading - 55.0 (in measurement point category temperature). But it will save in database table like 3.4814999999999998E+02.But i dont know which function module will use to convert decimal to exponential format.Please tel me which function module will use......
Regards
Geetha
‎2008 Dec 04 6:44 AM
‎2008 Dec 04 6:47 AM
Hi
Pass the data in the decimal format the system will internally convert it Floating point format
or try this out
data : var(4) type p decimals 2 value '10.22',
float type f.
float = var.
write float.
regards
Ramchander Rao.K
‎2008 Dec 04 6:49 AM
Hi,
you can directly use EXP function.
Check this code sample.
DATA: RESULT TYPE F,
PI(10) VALUE '3.141592654'.
RESULT = exp( PI ).
WRITE RESULT.
Thanks
‎2008 Dec 04 6:50 AM
‎2013 Jul 11 11:35 PM
Dear Geetha,
Please check this thread Simple routine to convert exponential values to float that solves this issue.
Regards,
Mohammed Mohsen