You are viewing a single comment's thread. Return to all comments →
Since average population will not be a negative value, +0.5 or -0.5 will work correctly.
But we need to be careful when it comes to rounding of negative floating points.(better to use round() function in this case)
Seems like cookies are disabled on this browser, please enable them to open this website
Average Population of Each Continent
You are viewing a single comment's thread. Return to all comments →
Since average population will not be a negative value, +0.5 or -0.5 will work correctly.
But we need to be careful when it comes to rounding of negative floating points.(better to use round() function in this case)