Arrays not working for some odd reason
Here is my code:
Code:
It SHOULD print out: Array: xxx.xx But it prints out: Array: . I included new var4 = random_num(1,9); incase the problem was with random numbers...seems not to be the case. Any ideas? |
You printing a string.
But as you said Quote:
Code:
Your mistake is that you thought that number == 'number' But in fact, for example 7 != '7'. |
Thanks. BTW, any other way to do it?
|
| All times are GMT -4. The time now is 16:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.