Bots and Simulations > Tips and Tricks
More compact way for conditionless greater-than-zero
Numsgil:
The sqr operator takes the square root of a number, then floors it.
That is, 99 sqr would give you 9.
Negative numbers return 0.
gymsum:
--- Quote from: Trafalgar ---
--- Quote from: gymsum ---does sqrt only work if you use 10+? sqrt of 1 is a floating decimal.
--- End quote ---
What are you smoking? 1*1 = 1.
--- End quote ---
lol oh yeah
Navigation
[0] Message Index
[*] Previous page
Go to full version