[futurebasic] Re: [FB] [R7] Fixed Broken?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 2002 : Group Archive : Group : All Groups

From: Alain Pastor <apastor@...>
Date: Wed, 06 Nov 2002 08:50:45 +0100

Heather Donahue wrote:
> I like the subject line :-)
> 
> Maybe my memory is failing but I thought that the type FIXED supported real
> numbers.
> 
> I would have hoped that dividing 16 by 10 would give me 1.6 (I'd even accept
> 1.05999)
> 
> When I do this:
> 
> dim as fixed testNum: testNum = 321.0
> dim as fixed timesTen
> dim as fixed divTen
> 
> timesTen = testNum * 10: print timesTen
> divTen = testNum / 10: print divTen
> 
> I get this:
> 
> 3210
> 32      --> Should be 32.1 (or is it 32.09999?)
> 
> Am I missing something or is FIXED broken?
> 

Shouldn't you be using FixMul and FixDiv in those cases?
-- 
Cheers,

A. Pastor