Author Topic: Float bug?  (Read 2290 times)

0 Members and 1 Guest are viewing this topic.

Peter

  • Guest
Float bug?
« on: July 17, 2011, 03:09:33 PM »
Deleted
« Last Edit: May 07, 2015, 11:22:29 AM by Peter »

Charles Pegge

  • Guest
Re: Float bug?
« Reply #1 on: July 17, 2011, 03:22:54 PM »
It's nearly my bed time. But one potential problem is using the word var. This is a low level word used by dim statements to create variables. The compiler should be smart enough not to be confused when var is redefined by the user but I cannot guarantee it.

Charles

I get the correct answers but with very small rounding errors. This is a bonus feature of floating point :) and it is not always clear why it happens. Floating point numbers usually have to be cleaned up and trimmed before displaying. Was this the problem you encountered Peter?
« Last Edit: July 17, 2011, 08:13:42 PM by Charles Pegge »