# Most useful javascript math functions

## **abs**

**Math.abs function returns the absolute value of a number**


![carbon (22).png](https://cdn.hashnode.com/res/hashnode/image/upload/v1621746409131/jlbMbOXQL.png)

## **ceil**

**Math.ceil function rounds a number up to the next largest integer**


![carbon (23).png](https://cdn.hashnode.com/res/hashnode/image/upload/v1621746494532/mY9EPGuj_.png)

## **floor**

**Math.floor function rounds a number down to its nearest integer**


![carbon (25).png](https://cdn.hashnode.com/res/hashnode/image/upload/v1621746571356/Jz98tAaox.png)

## **round**

**Math.round function rounds a number to its nearest integer**

![carbon (24).png](https://cdn.hashnode.com/res/hashnode/image/upload/v1621746550932/MkIxsqGy3.png)

## **trunc**

**Math.trunc function returns the integer part of a number**


![carbon (26).png](https://cdn.hashnode.com/res/hashnode/image/upload/v1621746689915/uo-SMmKzr.png)


## **max**

**Math.max function returns the number with the largest value**


![carbon (55).png](https://cdn.hashnode.com/res/hashnode/image/upload/v1622557110008/1rcH6dRfP.png)



## **min**

**Math.min function returns the number with the lowest value**

![carbon (54).png](https://cdn.hashnode.com/res/hashnode/image/upload/v1622556945751/NZNJuBS4S.png)


## **pow**

**Math.pow function returns the base to the exponent power**


![carbon (31).png](https://cdn.hashnode.com/res/hashnode/image/upload/v1621747253211/OqwJHwiwW.png)


## **sqrt**

**Math.sqrt function returns the square root of a number**


![carbon (32).png](https://cdn.hashnode.com/res/hashnode/image/upload/v1621747311129/JfjcDppwb.png)


## **cbrt**

**Math.cbrt function returns the cubic root of a number**


![carbon (33).png](https://cdn.hashnode.com/res/hashnode/image/upload/v1621747363289/DoLcBeSkk.png)

## **random**

**Math.random return random number between 0 to 1**


![carbon (35).png](https://cdn.hashnode.com/res/hashnode/image/upload/v1621747953309/95wzHlvVt.png)


# **Bonus**

## **sign**

**Math.sign return an argument is negative, positive or NaN**


![carbon (34).png](https://cdn.hashnode.com/res/hashnode/image/upload/v1621747721304/-qtsj2IV32.png)


# **Wrapping up!**

Share this blog with your friends 👩🏼‍🤝‍🧑🏼 and developers 👨‍💻 you know and let them know these

Your feedback and comments are very important to me. 💌

# **Get in touch 🤜🤛**

 [Instagram](https://www.instagram.com/technonic) 


