Overflow problem

 BBS: Inland Empire Archive
Date: 12-13-92 (22:55)             Number: 346
From: RAYMOND PAQUIN               Refer#: NONE
  To: LUKE MERRILL                  Recvd: NO  
Subj: Overflow problem               Conf: (2) Quik_Bas
 LM> My current program gives me an overflow whenever
 LM> this statement is executed and the product of Num1
 LM> and Num2 is more 300,000(rough guess).
 LM>       CorrectAnswer# = Num1 * Num2
 LM> It doesn't seem to recognize CorrectAnswer as double precision, even
 LM> with the #.  Any suggenstions.....
Use CorrectAnswer# = Num1 * CDBL(Num2)

--- Maximus 2.01wb
 * Origin: QuickShare Canada Point * Orleans, ON (613)830-2802 (1:163/518)
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