OVERFLOW PROBLEM

 BBS: Inland Empire Archive
Date: 12-14-92 (05:28)             Number: 240
From: DAVID WEST                   Refer#: NONE
  To: LUKE MERRILL                  Recvd: NO  
Subj: OVERFLOW PROBLEM               Conf: (2) Quik_Bas
LM>      CorrectAnswer# = Num1 * Num2
LM>It doesn't seem to recognize CorrectAnswer as double precision, even with
LM>the #.  Any suggenstions.....

Luke,

Try CorrectAnswer# = 1#*num1*Num2
The compiler looks at the expression on the right side, and guesses at
to what precision it should be. By putting in the double precision 1#,
it should not overflow.

Dave


--- TMail v1.30.4
 * Origin: TC-AMS MLTBBS 2.2 - Minnetonka, MN (612)-938-4799 (1:282/7)

Outer Court
Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET