Simple Maths

hello…

I have an application performing a simple calculation of adding and subtracting a amout to/from a balance amount.

The problem is that every thing works fine except that when i remove the lkast amout from the balance ie: 15.25 -15.25 suppose i get something like -5.32907051820075e-15

can some one tell me why

Floating point arithmetic. -5.32907051820075e-15 is, for all intents and purposes, 0.

Thank you… i hope i got it :slight_smile: