Adicionando formatos int e float
This commit is contained in:
parent
e44401c534
commit
91965ca34d
1 changed files with 2 additions and 0 deletions
|
@ -138,6 +138,8 @@ function formatarValor(valor, formato) {
|
||||||
case 'cpfcnpj': return formatarCpfCnpj(valor);
|
case 'cpfcnpj': return formatarCpfCnpj(valor);
|
||||||
case 'contabancaria': return formatarContaBancaria(valor);
|
case 'contabancaria': return formatarContaBancaria(valor);
|
||||||
case 'telefone': return formatarTelefone(valor);
|
case 'telefone': return formatarTelefone(valor);
|
||||||
|
case 'int': return parseInt(valor);
|
||||||
|
case 'float': return parseFloat(valor);
|
||||||
default:
|
default:
|
||||||
return valor;
|
return valor;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue