http://en.wikipedia.org/wiki/Floating_point#Accuracy_problems http://en.wikipedia.org/wiki/Floating_point#Minimizing_the_effect_of_accuracy_problems
Benoit, maybe you can add datatype 'decimal' in wish list? Jussi On Wed, Dec 29, 2010 at 20:09, Wellington de Souza Pinto < [email protected]> wrote: > Hi! > > I sent isolate program to test the error. > > execute the program and follow this steps: > > 1 - Click in "Cheque" button > Using the mouse click in "Valor Cheque" textbox > type 20000 and press tab key > > The Resta show 5123,56 > > 2 - click in button "Lançar" > > 3 - Click in "Dinheiro" button > Using the mouse click in "Valor Dinheiro" textbox > type 5123,56 and press key tab > > The error is. > > Resta = 5123,56 (float) > mskVALOR = 5123,56 > The breakpoint in 162 > in debug window: > ? vrresta -> show(5123,56) > ? tmpvalor -> show(5123,56) > ? vrresta = tmpvalor ->show(FALSE) > PRESS Shift+F8 to continue to next line > > Again in debug windo type: > ? vrResta > 9,094947017729E-13 > > ???????????? > > I'm use fc13, fc14 and ubuntu 10.10 in my computer for tests. > > Reguards, > > Wellington > > ___________________________________________________________________________________ > Para fazer uma ligação DDD pra perto ou pra longe, faz um 21. A Embratel > tem > tarifas muito baratas esperando por você. Aproveite! > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gambas-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
