| |
|
myrEIGHT
|
  |
| Joined: 22 Apr 2012 |
| Total Posts: 124 |
|
| |
|
mage11561
|
  |
| Joined: 03 Sep 2008 |
| Total Posts: 13217 |
|
|
| 05 May 2012 02:24 PM |
It's the largest number on Lua,
so it's always the same. |
|
|
| Report Abuse |
|
|
|
| 05 May 2012 02:27 PM |
So if someone set there health to math.huge
Could I detect It was math.huge or a very very high number? |
|
|
| Report Abuse |
|
|
mage11561
|
  |
| Joined: 03 Sep 2008 |
| Total Posts: 13217 |
|
|
| 05 May 2012 02:28 PM |
| It doesn't return a number. |
|
|
| Report Abuse |
|
|
myrEIGHT
|
  |
| Joined: 22 Apr 2012 |
| Total Posts: 124 |
|
|
| 05 May 2012 02:29 PM |
| You could but very very high number like 9999999999999999^99999999999999 also equals with math.huge |
|
|
| Report Abuse |
|
|
myrEIGHT
|
  |
| Joined: 22 Apr 2012 |
| Total Posts: 124 |
|
|
| 05 May 2012 02:34 PM |
print(math.huge)
>1.#INF
print(999999999999999999999999999999999^999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)
>1.#INF
print(1/0)
>1.#INF |
|
|
| Report Abuse |
|
|
|
| 05 May 2012 03:33 PM |
| math.huge isn't a number, it is equal to infinity. Since infinity is infinity, and not an actual numeric value, it doesn't change. |
|
|
| Report Abuse |
|
|
|
| 05 May 2012 03:37 PM |
print(1e999) > 1.#INF
~ ROBERT00001 ~ ~(ಠωಠ)~ |
|
|
| Report Abuse |
|
|