Substract .1 can be a solution? ROUND(X-0.1,1) .15 = 0.1You can also using int(x*10)/10 e cint(x*10)/10
2009/3/5 José Luis Capel <[email protected]> > Hi, > Round function seems that works like this: > > Round(0.14,1) // 0.1 > Round(0.15,1) // 0.2 > Round(0.16,1) // 0.2 > > Is there any way to configure (if possible) to work like this: > > Round(0.14,1) // -> 0.1 > Round(0.15,1) // -> 0.1 > Round(0.16,1) // -> 0.2 > > That is, from 1 to 5 no change, from 6 to 0 plus 1. > > Is it possible ? > > Do I have to write my own round function ?? > > > Thanks and regards, > José Luis Capel > PS: it is needed for an special case. > > _______________________________________________ > Harbour mailing list > [email protected] > http://lists.harbour-project.org/mailman/listinfo/harbour > > -- Massimo Belgrano Albo Nazionale Informatici Professionisti 2620 Socio 2843 Associazione Informatici prof. Analisi e sviluppo software per Lan e Web Consulenza informatica - Formazione Delta Informatica S.r.l. http://www.deltain.it Via Torelli,31 - 28100 Novara - Tel: 0321/30281
_______________________________________________ Harbour mailing list [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
