Log in

View Full Version : HTML Rounding Numbers



Gulfbreeze
08-23-2010, 05:53 PM
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

bluewalrus
08-23-2010, 05:58 PM
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.

Gulfbreeze
08-23-2010, 06:10 PM
Thanks, that's what I thought....looks like I'll have to learn PHP..or Java Scripting...oh well thanks again!

Gulf Breeze

bluewalrus
08-23-2010, 06:23 PM
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