[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Floating point error in SuperCharts


  • To: Omega Mailing List <omega-list@xxxxxxxxxx>
  • Subject: Re: Floating point error in SuperCharts
  • From: Scientific Approaches <sci@xxxxxxxxxx>
  • Date: Thu, 5 Mar 1998 22:33:05 -0800 (PST)

PureBytes Links

Trading Reference Links

John wrote:

>   Had that problem.  My problem was not with the software
> but with Windows 95.  Our solution was to remove all programs
> data to a back-up and re- init the disk and reload Windows.
> I asked the guy who came to help me out as to why this happens
> the reply was," when you load and delete software ie. shareware
> etc from your disk drive, it leaves small files behind, as a
> marker. Its these marker files that later confuse Windows and
> you get a overflow error message".

The guy who told you that should go back to computer school.

Installing and deleting lots of program files can leave lots of empty space
fragments on a hard disk.  That can be fixed by defragmenting the hard disk.
 There is no need to re-install Windows.  However, empty spaces do not cause
arithmetic overflow errors.

They result from attempts to save numeric values in memory registers or CPU
registers too small to contain them.  Dividing by zero, for instance,
results in infinity.  Your computer memory isn't that big.  There is no
place to put the result, so that causes an error.  That usually is reported
as a divide by zero error, rather than an overflow error, because the math
coprocessor anticipates dividing by zero will cause an error and it returns
an error flag without wasting time attempting an operation it cannot
successfully complete.  However, dividing by a very small, but not zero
value, will cause a very large result that may not fit in the memory space
allocated for it, resulting in an overflow error.

The problem with overflow errors in SuperCharts that someone else was
complaining about is more likely due to invalid historic trading data than
to something that has happened to the SuperCharts program code.  A bad price
quote value, such as .00000001, might cause an overflow error when
SuperCharts divides to calculate the required chart scaling.

  -Bob Brickey
   Scientific Approaches
   sci@xxxxxxxxxx