---
title: "Comment by Harsh Bharvada on \"Top 5 Potent Javascript Tips and Tricks\" | Hashnode"
description: "Awesome content ⚡️! One can also add the following for getting floor values of POSITIVE numbers let floorValue = ~~( 3 / 2 ); // 1"
url: "https://hashnode.com/posts/top-5-potent-javascript-tips-and-tricks/6124b50d663d427e19ff9ac4/comment/6128e1a99da1766342ad640c"
---

[Discussion](https://hashnode.com/posts/top-5-potent-javascript-tips-and-tricks/6124b50d663d427e19ff9ac4)

Comment [Top 5 Potent Javascript Tips and Tricks](https://hashnode.com/posts/top-5-potent-javascript-tips-and-tricks/6124b50d663d427e19ff9ac4)

[Harsh Bharvada](https://hashnode.com/@harshbharvada)

[Aug 27, 2021](https://hashnode.com/posts/top-5-potent-javascript-tips-and-tricks/6124b50d663d427e19ff9ac4/comment/6128e1a99da1766342ad640c)

Awesome content ⚡️! One can also add the following for getting floor values of **POSITIVE** numbers

```
let floorValue = ~~(3/2); //1
```

[Gayathri Devi Srinivasan](https://hashnode.com/@GayathrideviSrinivasan)

[Aug 27, 2021](https://hashnode.com/posts/top-5-potent-javascript-tips-and-tricks/6124b50d663d427e19ff9ac4/comment/6128e1a99da1766342ad640c#reply-612924959da1766342ad6cea)

Great tip to add to queue ! Thanks Harsh 🙂
