logoalt Hacker News

Woansdeitoday at 8:21 PM1 replyview on HN

C64 Basic did have integers.

A floating point

A$ string

A% int

as you would expect ints are quicker.


Replies

izacustoday at 8:56 PM

Err, ints are internally stored as floats as well and that leads to some really interesting performance quirks where you'd not expect.

There were BASIC compilers for C64 which generated significantly faster code just because they actually used ints for integer operations.