Article View: alt.lang.basic
Article #171Re: Math Functions with Long Integers
From: Michael D. Beynon
Date: Wed, 26 Aug 1992 18:44
Date: Wed, 26 Aug 1992 18:44
17 lines
868 bytes
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
Technical Details
Message-ID:
<1992Aug26.184404.8147@crd.ge.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!crdgw1!rdsunx.crd.ge.com!nnn!beynonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!crdgw1!rdsunx.crd.ge.com!nnn!beynon From: beynon@nnn.NoSubdomain.NoDomain (Michael D. Beynon) Newsgroups: alt.lang.basic Subject: Re: Math Functions with Long Integers Message-ID: <1992Aug26.184404.8147@crd.ge.com> Date: 26 Aug 92 18:44:04 GMT Sender: usenet@crd.ge.com (Required for NNTP) Reply-To: beynon@nnn.crd.ge.com Organization: GE Corporate R&D Center, Schenectady, NY Lines: 17 Nntp-Posting-Host: nnn.crd.ge.com