+ 2
What is the meanin of "~~" sign?
i see codes use: ~~Math.random... What is the use?
4 ответов
+ 4
~ is the bitwise NOT operator. First, it gets rid of the decimal place (if any), then, it “nots” the number. Two ~s would: first get rid of the decimal place, second “not” the number, then third “not” the new number again. That would get rid of the decimal place, so it’s the same as Math.floor.
Further info on bitwise NOT:
https://www.sololearn.com/learn/4076/?ref=app
+ 3
Jingga Sona 🐺 [HOWLING] No worries! Also... 🐤 me chicken [PECKING]!
+ 2
Rowsej lol 😂😂
+ 1
Rowsej oh i get it! Thanks again!😊😊😊