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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Float values keep getting rounded to 2 decimal places.

salom
1-Visitor

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
ptc-6292103
12-Amethyst
(To:salom)

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


Top Tags