Does BASIC have a modulus anybody?
I think it's mod , but I'm not sure and can't remember how to use it if it is. However,
let n=25
...
if (x/n) = int(x/n) then
blah blah blah
will do the same in AmigaBasic MOST of the time. Certainly for small numbers AmigaBasic was pretty good about rounding its floats. I'd stay away from it though because, while it may be mathematically correct, computers aren't.
Safer way, if you don't have mod is to just count:
if count > 0 then
{
print char(x)
count--
}
else
{
print
count = n
}