The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mod with type float
#1
This seems to work backwards, giving division instead of remainder.

Code:
dim i as float For i = 1 to 255 print int i if i mod 22=0 then pause 1 pause 0 cls end if next i

If you change the dim i as float to dim i as uinteger, it works perfectly, pausing each screen.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)