Formatting a number
Hi, i want to show a number in percentage format.
I'm using:
#,##% but if the number is 97.34 only appears as 7.34, and if i use
####,##% i'm having problems if the decimal separator is the dot (.).
Also, how can i have independence of the regional settings? If i use
#.## and the decimal separator in settings is , i have a wrong format.
thanks
--
Guillermo Castaño Acevedo
Gerente de Sistemas - Grupo Millennium Ltda
GuillermoC@GrupoMillennium.com
www.GrupoMillennium.com
I'm using:
#,##% but if the number is 97.34 only appears as 7.34, and if i use
####,##% i'm having problems if the decimal separator is the dot (.).
Also, how can i have independence of the regional settings? If i use
#.## and the decimal separator in settings is , i have a wrong format.
thanks
--
Guillermo Castaño Acevedo
Gerente de Sistemas - Grupo Millennium Ltda
GuillermoC@GrupoMillennium.com
www.GrupoMillennium.com
This discussion has been closed.
Comments
http://www.digital-metaphors.com/tips/ReplaceDisplayFormats.zip
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
it and Delphi help doesn't list the unit neither...
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
variable.
thanks any way, i found valuable information in the example you sent me.
thanks again