annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

adding decimal to an integer

I'm reading 3 digit integers back from a controller in the form of XXX. I need to format them to the form XX.X

Example

245 should read 24.5, or 345 should read 34.5.

Besides the easiest method of just dividing bt 10 is there a labview function that will place the decimal in my integer number where I need it to be?

0 Compliments
Message 1 sur 3
2 724 Visites

No, division is just fine.Well, you could multiply with 0.1 instead 😄

 

If it is just a string: insert a dot char after the 2nd char (as most "controllers" managed by VISA functions deliver strings...).

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Compliments
Message 2 sur 3
2 720 Visites

Thank You.....

0 Compliments
Message 3 sur 3
2 707 Visites