AGG Software Forums

Online Help Center => Data loggers and plug-ins => Topic started by: ccdr on May 14, 2017, 04:48:04 AM



Title: convert scientific notation string into float
Post by: ccdr on May 14, 2017, 04:48:04 AM
Hi
My device can only reponse with string in scientific notation with unit.
Like
-2.208827E-12A representing -2.2pA.
I just want pure float data, i.e. -0.000000000002208827 without any character.
How can I achieve that with Data logger suite?
Thanks.


Title: Re: convert scientific notation string into float
Post by: Arthur Grasin on May 15, 2017, 07:39:01 AM
Hello.

You may extract this value (-2.208827E-12) in the parser and specify the Float data type. Then you may use the FormatFloat function in the Expressions plugin

NEWVALUE=FORMATFLOAT('0.00000000000000000',  VALUE)