🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Michael D. Beynon Wed, 26 Aug 1992 18:44
Re: Math Functions with Long Integers
#171
Author: Michael D. Beynon
Date: Wed, 26 Aug 1992 18:44
17 lines
868 bytes
If you do...

  L& = 10 * 3600

The right hand side is evaluated, but the data type is just regular
integer, since these plain numeric constants are assumed to be integers.

When BASIC tries to store the result, it sees an overflow.

This should solve the problem...

  L& = 10& * 3600&

This is sort of like type casting in C  (ooh I said the "C" word :-)

Michael D. Beynon
beynon@nnn.crd.ge.com
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads