[DUG] Need help in format function

bevan at achieve.co.nz bevan at achieve.co.nz
Wed Mar 3 20:58:32 NZDT 2010


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.image at 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
> 
> 



More information about the Delphi mailing list