The premise of this problem sounds easy. Write a function that returns if a number is negative or not. The tricky part comes from detecting -0. Your experience may vary be language. You'll also note that IEEE says that -0 === +0. Make sure your function can tell the difference.
Comments:
Jason - 9 years, 10 months ago
reply permalink
Jason - 9 years, 10 months ago
Wow... I should read the whole problem.... here is the correct one
reply permalink
Jason - 9 years, 10 months ago
reply permalink