Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Round the Temperature data to a whole number

Aldo Apr 30, 2019 05:45PM BST

Does the API have a way to do this?
I want to receive the data as 50 or -10 instead of 50.34 or -10.18

I know I can use external means to round the result after I've made the call and received the data but I'd like to know if there is a way that OpenWeathwerMap's response can do the rounding itself without the need of an additional step?

Up 0 rated Down
Pavel Zuykov May 02, 2019 09:12AM BST OpenWeatherMap Agent

Hello,

API have no internal mechanism to round the decimals.

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)
9eda11838f597e7a95b6a1c991dcae0a@openweathermap.desk-mail.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete