There exist two zeroes: +0 (or just 0) and -0.

Write a function that returns `true` if the input number is -0 and `false` otherwise (`True` and `False` for Python).

In JavaScript / TypeScript / Coffeescript the input will be a number.

In Python / Java / C / NASM / Haskell / the input will be a float.

Source: codewars | Difficulty: EASY
Tags: Fundamentals

Starter code: def is_negative_zero(n):
	

Solutions:
def is_negative_zero(n):
	return str(n) == '-0.0'


import math

def is_negative_zero(n):
	return n == 0 and math.copysign(1, n) == -1


import math

def is_negative_zero(n):
	return math.atan2(-0.0, -0.0) == math.atan2(n, n)


def is_negative_zero(n):
	return True if n == 0 and str(n).startswith('-') else False


is_negative_zero = lambda n: n == 0 and str(n).startswith('-')


def is_negative_zero(n):
	return str(n).startswith('-') and n == 0


def is_negative_zero(n):
	if str(n) == '-0.0':
		return 1
	else:
		return 0


import struct

def is_negative_zero(n):
	return struct.pack('>d', n) == b'\x80\x00\x00\x00\x00\x00\x00\x00'


is_negative_zero = lambda n: str(n)[0] == '-' and (not n)