don't know where to place my topic so i will do it here
the problem is, if i fill [A] with 16 or 64 or higher (a 2^n) it will returns an error that i've not a valid dimension. here is the code:

Code:
{4,4->dim([A]
{255,255,245,228,235,224,231,238,229,229,229->L1
Fill(16,[A]
real(0,1,1
real(0,3,4,181,1
real(0,3,4,181,0
"GAME"
real(5,0,0
real(7,7,1,7,106,106,148,0
real(7,7,2,8,104,104,148,0
real(7,7,27,7,2,104,148,0
real(7,7,53,7,2,104,148,0
real(7,7,79,7,2,104,148,0
real(7,7,1,33,104,2,148,0
real(7,7,1,59,104,2,148,0
real(7,7,1,85,104,2,148,0
For(A,1,4
For(B,1,4
If [A](A,B
real(7,9,26A-23,26B-17,24,24,L1(logBASE([A](A,B),2)),0
End
End
"POINTS"
real(6,0,110,40,255,10,1
Pause
real(0,3,4,255,1
real(0,3,4,255,0
real(0,1,0,1
On what line does the error occur? What have you already tried to fix the problem? logBASE() does not necessarily return integers, which is probably your problem, but please show more of the effort you already put into trying to solve the problem yourself.
ah well, thank you, i add an int() and now it is possible. tanx!
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement