Jump to content
Fórum Script Brasil
  • 0

Trocando , Por . E Vice Versa


Espartaco

Question

estou fazendo uma loja virtual , e uso xmlhttp para cálculo de frete dos correios. O problema que o site do correio retorna a moeda com . (ponto) Ex: 61.8, que era pra ser 61,80.

O resto da loja eu configurei para formatar valor 00,00, mas se uso o formatnumber na resposta docorreios, em vez de ficar 61,80, fica 618,00. E se somo o valor da compra, por exemplo, 100,00 com o 61.8, fica 100,618

Aguardo ajuda

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      651.8k
×
×
  • Create New...