AGG Software Forums
November 23, 2024, 08:46:13 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome on our forum!
 
   Home   Help Search Login Register  

Pages: [1]
  Print  
Author Topic: convert scientific notation string into float  (Read 13630 times)
ccdr
Jr. Member
**

Karma: +0/-0
Posts: 71


View Profile
« 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.
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #1 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)
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines