cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Float values keep getting rounded to 2 decimal places.

salom
Newbie

Float values keep getting rounded to 2 decimal places.

Hello,

I have a service that receives data from an Arduino and these pieces of data are floats. I want to use these float values as longitude and latitude data, however once sent to my service, the float values are rounded to 2dp which is useless for location data.

I'm sending these floats to inputs of type "Number".

Any help is appreciated.

1 REPLY 1

Re: Float values keep getting rounded to 2 decimal places.

How are you viewing the data?

If you're looking at it in a Grid Widget, check the column configuration; there's a format parameter which you might need to adjust in order to see all the decimal places.

Announcements

Check out the upcoming Expert Session: Understanding ThingWorx Navigate Licensing in Community "Customer Events" section.