Is this the bug of fix() function in LotusScript

I coded this LotusScript: Dim a As Long

Dim b As Double

b=200000

a=Fix(b*(1-(37.87/100)))

Print a

The correct result should be 124,260

but why 124,259 is printed?

Is this the bug?

Is anyone know how to fix it except to code another function instead of fix function ? This is very urgent for my project. Lots of codes used fix function.

Subject: Is this the bug of fix() function in LotusScript

Dim a As Double Dim b As Double

Dim c As Double

b=200000

'a=Fix(b*(1-(37.87/100)))

c=(b*(1-(37.87/100)))

Msgbox Fix(c)+Fraction(c)

Modified code

You need to use fraction code

Subject: RE: Is this the bug of fix() function in LotusScript

No. I donot want fraction.if b=2000

the result will be 1242.6

My example is very strange, fix is work well almost time but a little few condition.

I donot what it is.

Subject: Is this the bug of fix() function in LotusScript

Hi

The Fiz\x code is working as expected.

It rounds to next number

e.g fix(9.9999)

it returns 9