FloatToStrF(eTemp - 0.005, ffNumber, sizeof(eTemp), 2) So when it rounds up, the result will be the same as always rounding down.
On Wed 03/03/10 6:40 PM , "Vikas..." <vikas.im...@gmail.com> wrote: > Subtracting, I am sorry what u mean? > > On Wed, Mar 3, 2010 at 12:06 PM, Bevan Edwards wrote: > What if you just subtract 0.005 from the number you pass to the > function? > -------------------------- > -----Original Message----- > From: "Vikas..." > Date: Wed, 3 Mar 2010 12:00:24 > To: NZ Borland Developers Group - Delphi List; NZ Borland Developers > Group - Delphi List > Subject: [DUG] Need help in format function > _______________________________________________ > NZ Borland Developers Group - Delphi mailing list > Post: > Admin: http://delphi.org.nz/mailman/listinfo/delphi [6] > Unsubscribe: send an email to with Subject: unsubscribe > _______________________________________________ > NZ Borland Developers Group - Delphi mailing list > Post: > Admin: http://delphi.org.nz/mailman/listinfo/delphi [9] > Unsubscribe: send an email to with Subject: unsubscribe > -- > vikas > > > Links: > ------ > [6] http://delphi.org.nz/mailman/listinfo/delphi > [9] http://delphi.org.nz/mailman/listinfo/delphi > > _______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: unsubscribe