-
HTML Rounding Numbers
Is it possible to round off number using html coding?
My weather station reports temperature, wind speeds like : Temperature:98.2F or Wind speed: 3.6 mph. I'd like to round those off if possible using HTML format.
Format used by WS is for Temperature %[Outdoor_Temperature]deg_F%
Any ideas as to if this can be done using html would be appreciated.
GulfBreeze
-
Not html, javascript could do it as well as a server side language (php, asp, cf, etc.). It depends where the value is coming from.
-
Thanks, that's what I thought....looks like I'll have to learn PHP..or Java Scripting...oh well thanks again!
Gulf Breeze
-
Pretty easy with php although you'll have to pull the value into it and make it an integer.
http://php.net/manual/en/function.round.php