hey there,
im writting a simple program for school that takes input of temperature and dewpoint and converts it to the humidex.
My program works except i still need to round my humidex number off.
I've tried inserting Math.round but i always get an error.
Im wondering how do i use this method properly for it to work! (note, i only need one decimal space)
Here is a snippet of my code:
humidex = + temp + + h ;
i need the humidex to be rounded to one decimal. where do i put Math.round?
im writting a simple program for school that takes input of temperature and dewpoint and converts it to the humidex.
My program works except i still need to round my humidex number off.
I've tried inserting Math.round but i always get an error.
Im wondering how do i use this method properly for it to work! (note, i only need one decimal space)
Here is a snippet of my code:
humidex = + temp + + h ;
i need the humidex to be rounded to one decimal. where do i put Math.round?