Formatar valores numéricos  XML
Índice dos Fóruns » Desenvolvimento Web
Autor Mensagem
leonardom
Virtual Machine Man
[Avatar]

Membro desde: 23/02/2003 11:41:23
Mensagens: 679
Localização: Anywhere
Offline

Pessoal será que alguem poderia me passar algum metodo para formatar valor numericos 999.999,99 em um input.

"If you have an apple and I have an apple and we exchange apples then you and I will still each have one apple. But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas."

George Bernard Shaw (1856 - 1950) - Irish dramatist - Nobel Prize of Literature, 1925

blog: http://leonardom.wordpress.com
http://www.insidecode.com.br
[Email] [MSN]
leandrolima
JavaTeenager
[Avatar]

Membro desde: 24/03/2003 10:18:58
Mensagens: 180
Localização: São Paulo - SP
Offline

Se vc quer formatar o número como atributo.. que tal a classe NumberFormat ?

Agora se for no HTML, aí vc tem que usar um JavaScript para poder formatá-lo...

[]'s

Leandro Lima
Make things better!
[Email] [WWW] [ICQ]
leonardom
Virtual Machine Man
[Avatar]

Membro desde: 23/02/2003 11:41:23
Mensagens: 679
Localização: Anywhere
Offline

Seria em HTML

"If you have an apple and I have an apple and we exchange apples then you and I will still each have one apple. But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas."

George Bernard Shaw (1856 - 1950) - Irish dramatist - Nobel Prize of Literature, 1925

blog: http://leonardom.wordpress.com
http://www.insidecode.com.br
[Email] [MSN]
leandrolima
JavaTeenager
[Avatar]

Membro desde: 24/03/2003 10:18:58
Mensagens: 180
Localização: São Paulo - SP
Offline

Visite e faça um search....

http://www.dynamicdrive.com

[]'s

Leandro Lima
Make things better!
[Email] [WWW] [ICQ]
 
Índice dos Fóruns » Desenvolvimento Web
Ir para:   
Powered by JForum 2.1.8 © JForum Team