PDA

View Full Version : NaN. NaN?


Blixinator
02-20-2005, 04:39 PM
why does my money say this?
http://img150.exs.cx/img150/6931/ib20uz.png

unicycler
02-20-2005, 04:42 PM
I think that means that you have an infinate amount of money. I am not absolutley sure though, check by trying to buy everything. If your money goes down, or you aren't allowed to buy anything then you can correctly assume that I was wrong.

Blixinator
02-20-2005, 04:50 PM
but I already bought everything and I didn't have that much money one day 1500 next day nan nan

Blixinator
02-20-2005, 04:51 PM
but I already bought everything and I didn't have that much money one day 1500 next day nan nan

The Brown Cow
02-20-2005, 09:42 PM
NaN = Not a Number.

It's a glitch. Something bad happened with math in the code.

thebigguyz
02-20-2005, 11:05 PM
perhaps it is a good thing. If it's not a number than you can't run out like unicycler said. I don't know how much that would help you since you bought everything but meh *shrugs*

Sperry
02-21-2005, 06:20 AM
It very well seems to be a glitch; you probably hit standard wall. Most games have a numerical limit after which they cannot climb. Usually it's 16, 32, 64; numbers to follow of course but there are always numerical limits (to most games anyway).

Blixinator
02-21-2005, 01:06 PM
but I only had 1500 dollars

Sperry
02-21-2005, 04:29 PM
If you only had $1500 and then that; then it's a glitch; not the wall; walls are very high.

The Brown Cow
02-21-2005, 04:44 PM
That seems to happen when I run a script. Glitch.

Flash would switch to Infinity, not NaN when it reached the maximum number. The number is quite large too... (30-something digits).

b.i.g.
02-24-2005, 10:53 AM
it probably means infity because thats what it says when you get infinity


play it at www.k2xlgames.com/games/StickWorld

DarkReality
02-24-2005, 11:34 AM
Isn't Infinity is notated as Inf in flash? NaN is normally returned when you try to do math operations like "1 + Apple" or so. But then again, it's been a while since I did anything with actionscript.

i'm guessing a script that's supposed to change money somehow managed to screw up. It happened once to me when I set an explosion to happen every frame with an insanely high strength.

theryman
02-24-2005, 06:40 PM
When you enter the actionscript code

"explode(getXbuddy(),getYbuddy(),10)"

you get NaN.NaN money. Not sure, but i think it is an infinite amount.

The Brown Cow
02-24-2005, 07:08 PM
NaN seems to give you unlimited money.

That's NaN dollars and NaN cents, hence the period.


Infinity is called "Infinity" in Flash. Dark's right, something messes up in the part where money is added for interaction.