Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Varios (https://www.clubdelphi.com/foros/forumdisplay.php?f=11)
-   -   Dar formato a un qrlabel (https://www.clubdelphi.com/foros/showthread.php?t=5473)

rmnart 22-11-2003 01:52:36

Dar formato a un qrlabel
 
como puedo darle formato a un float para que me ponga 2 decimales y separacion de miles en un qrlabel.

ejemplo: 1450.3 me ponga 1, 450.30
1450 me ponga 1,450.00

Gracias por su ayuda

marcoszorrilla 22-11-2003 14:26:07

Código:

MiLabel.Caption:=FormatFloat(',0.00',MiVariableDouble);
Un Saludo.


La franja horaria es GMT +2. Ahora son las 22:52:19.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi