In this simple assignment you are given a number and have to make it negative. But maybe the number is already negative?

**Example:**
``` c
makeNegative(1); // return -1
makeNegative(-5); // return -5
makeNegative(0); // return 0
```
``` cfml
makeNegative(1); // return -1
makeNegative(-5); // return -5
makeNegative(0); // return 0
```
``` csharp
Kata.MakeNegative(1); // return -1
Kata.MakeNegative(-5); // return -5
Kata.MakeNegative(0); // return 0
```
``` java
Kata.makeNegative(1); // return -1
Kata.makeNegative(-5); // return -5
Kata.makeNegative(0); // return 0
```
``` python
make_negative(1);  # return -1
make_negative(-5); # return -5
make_negative(0);  # return 0
```
``` javascript
makeNegative(1); // return -1
makeNegative(-5); // return -5
makeNegative(0); // return 0
makeNegative(0.12); // return -0.12
```
``` typescript
makeNegative(1); // return -1
makeNegative(-5); // return -5
makeNegative(0); // return 0
```
``` cpp
makeNegative(1); // return -1
makeNegative(-5); // return -5
makeNegative(0); // return 0
```
``` haskell
makeNegative    1 -- return -1
makeNegative (-5) -- return -5
makeNegative    0 -- return 0
makeNegative 0.12 -- return -0.12
```
``` ruby
makeNegative(1); # return -1
makeNegative(-5); # return -5
makeNegative(0); # return 0
```
``` coffeescript
makeNegative 1    # return -1
makeNegative -5   # return -5
makeNegative 0    # return 0
```
``` elixir
make_negative 1    # return -1
make_negative -5   # return -5
make_negative 0    # return 0
```
``` go
MakeNegative(1)    # return -1
MakeNegative(-5)   # return -5
MakeNegative(0)    # return 0
```
``` julia
Kata.makeNegative(1)  # return -1
Kata.makeNegative(-5) # return -5
Kata.makeNegative(0)  # return 0
```
``` kotlin
Kata().makeNegative(1)  // return -1
Kata().makeNegative(-5) // return -5
Kata().makeNegative(0)  // return 0
```
``` asm
make_negative(1);    // return -1
make_negative(-5);   // return -5
make_negative(0);    // return 0
```
``` groovy
Kata.makeNegative(1)    // return -1
Kata.makeNegative(-5)   // return -5
Kata.makeNegative(0)    // return 0
```
``` php
makeNegative(1)    // return -1
makeNegative(-5)   // return -5
makeNegative(0)    // return 0
makeNegative(0.12) // return -0.12
```
```racket
(make-negative 1)    ; -1
(make-negative -5)   ; -5
(make-negative 0)    ; 0
(make-negative 0.12) ; -0.12
```

**Notes:**

- The number can be negative already, in which case no change is required.
- Zero (0) is not checked for any specific sign. Negative zeros make no mathematical sense.

Source: codewars | Difficulty: EASY
Tags: Fundamentals

Starter code: def make_negative( number ):
	

Solutions:
def make_negative(number):
	return -abs(number)


def make_negative(number):
	return -number if number > 0 else number


def make_negative(number):
	return -1 * abs(number)


def make_negative(n):
	return n if n <= 0 else -n


def make_negative(number):
	return 0 - abs(number)


def make_negative(number):
	if '-' in str(number):
		return number
	else:
		return int('-' + str(number))


def make_negative(number):
	while number > 0:
		number = 0 - number
	return number


def make_negative(num):
	return -num if num > 0 else num


def make_negative(number):
	if number <= 0:
		return number
	if number > 0:
		return number - number * 2


def make_negative(number):
	if str(number).startswith('-'):
		return number
	elif str(number).startswith('0'):
		return number
	else:
		return int('-' + str(number))


make_negative = lambda x: x * -1 if x >= 0 else x


def make_negative(number):
	san = str(abs(number))
	san_neg = '-' + san
	return int(san_neg)


make_negative = lambda n: -abs(n)


def make_negative(number):
	number = int(number)
	sq = number ** 2
	sqr = int(sq ** 0.5)
	neg = -+sqr
	return neg


make_negative = lambda n: -n if n > 0 else n if n < 0 else 0


def make_negative(n):
	return int('-' + str(n)) if n > 0 else n


def make_negative(i):
	if i > 0:
		return i * -1
	else:
		return i


def make_negative(number):
	if number < 0:
		return number
	if number > 0:
		return number * -1
	elif number == 0:
		return 0


def make_negative(number):
	if number == abs(number):
		return number * -1
	else:
		return number


make_negative = lambda a: -a if a > 0 else a


def make_negative(number):
	if number == 0:
		return number
	if '-' in str(number):
		return number
	return -number


def make_negative(number):
	if number >= 1:
		result = number - 2 * number
		return result
	else:
		return number


def make_negative(number):
	return number if number < 0 or number == 0 else number * -1


def make_negative(number):
	a = str(number)
	for i in a:
		if i in '-0':
			return number
	number = -1 * number
	return number


def make_negative(number):
	if number < 0:
		return number
	elif number == 0:
		return 0
	else:
		neg = number - 2 * number
		return neg


def make_negative(number):
	if number == 0:
		return 0
	elif number < 0:
		return number
	else:
		number = number * -1
		return number
make_negative(15)


def make_negative(number):
	for num in [int(number)]:
		if num <= 0:
			return num
		if num > 0:
			return abs(number) * -1


def make_negative(number):
	n = -1 * number if number > 0 else number
	return n


def make_negative(number):
	if number > 0:
		resultado = number - number * 2
		return resultado
	else:
		return number


def make_negative(number):
	if number <= 0:
		return number
	elif number > 0:
		a = number * 2
		b = number - a
		return b


def make_negative(number):
	neg_no = '-{}'.format(number)
	return number if number < 0 else int(neg_no)


def make_negative(number):
	result = 0
	if number > 0:
		return number * -1
	elif number == 0:
		return 0
	else:
		return number


def make_negative(number):
	a = list(str(number))
	return -1 * number if a[0] != '-' else number


import math

def make_negative(number):
	if number < 0:
		return number
	elif number > 0:
		return -number
	else:
		return 0


def make_negative(number):
	if number > 0:
		return int('-{}'.format(number))
	elif number == 0:
		return 0
	else:
		return number


def make_negative(number):
	if number <= -1:
		return number
	elif number == 0:
		return 0
	else:
		return number - number * 2


def make_negative(number):
	if number == 0:
		return number
	elif number < 0:
		return number
	else:
		number = -number
		return number
print(make_negative(1))


make_negative = lambda number: 0 if number == 0 else number if number < 0 else number - number * 2


def make_negative(number):
	return (1 - 2 * (number >= 0)) * number


def make_negative(number):
	return int((number ** 2) ** (1 / 2) * -1)


def make_negative(number):
	if number > 0:
		pos = number * -1
		return pos
	elif number < 0:
		neg = number * 1
		return neg
	else:
		return number


def make_negative(number):
	print(-abs(number))
	return -abs(number)


def make_negative(number):
	output = ''
	if number < 0:
		return number
	else:
		output = '-' + str(number)
	return int(output)


def make_negative(number):
	nim = abs(number)
	return -nim


def make_negative(number):
	if number >= 0:
		s = -number
	else:
		s = number
	return s
print(make_negative(1))


def make_negative(number):
	if number == 0 or number < 0:
		return number
	return -number


def make_negative(number):
	if number < 0:
		return number
	if number > 0:
		answer = number * -1
		return answer
	else:
		return number


def make_negative(number):
	if number >= 1:
		return 0 - number
	else:
		return number
make_negative(42)


def make_negative(number):
	if int(number) < 0:
		return number
	return int(number * -1)