Welcome to the Treehouse Community
Looking to learn something new?
I just got js to fart. code fart that is.
I was playing with Math.round, and I thought " what if I round a - decimal..." It returned a -0. Negative 0. NVM. I just looked it up and apparently NOW some people thing there IS such a thing as negative zero. Sheesh, next thing I'll find out there's more than one lassie.
Jeff Lemay14,266 Points
I don't know about the crazies who think there can be an actual negative zero, but regarding your situation I think it's important to retain that it's a negative number. If you're rounding -0.25, you'd still want to know that your number was a negative and not a positive when you round it to the nearest whole number (-0).