Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Valor(Texto) | Desejado(Valor) Moeda |
---|---|
141.75 | 141,75 |
O campo está em formato texto
texto: 141.75
Desejado(Moeda): 141,75
Pedido(zero esqueda) | Pedido |
---|---|
000341745 | 341745 |
Tenho um campo chamado pedido esta com zero antes : 000341745
desejado: 341745
1) A-Coluna texto 141.75 para 141,75(moeda)
2) B-Coluna texto 000845 para 845(numero)
Alguma dica...
Boa tarde
No primeiro caso:
Num(Replace(141.75, '.', ','))
No segundo caso:
Num(000341745) ou PurgeChar('000341745', '0')
=money#('141.75','$#,##0.00')
=NUM('000341745','0')
Gostaria de fazer na tabela toda...
Boa tarde
No primeiro caso:
Num(Replace(141.75, '.', ','))
No segundo caso:
Num(000341745) ou PurgeChar('000341745', '0')
Basta trocar o valor pelo nome do campo
use the same function asis in your load script
This will also purge 0 from numbers like
000340745 to 34745 !!
Also replace is not exactly formatting the column to Currency!
using purgechar() will also purge 0 from numbers like
000340745 to 34745 !!
Also replace is not exactly formatting the column to Currency!
during load
money#(Value,'$#,##0.00') as Amount
NUM(Application,'0') as Application