erro number double aspJson1.17asp

42 views
Skip to first unread message

Luis Felipe Pinheiro Sym

unread,
Nov 3, 2015, 1:24:25 PM11/3/15
to JSON for ASP
{"code":"Lojas Americanas-261481043001","placed_at":"2015-10-27T20:56:41-02:00","updated_at":"2015-10-29T08:25:50-02:00","total_ordered":863.58,"interest":0.0,"shipping_cost":104.28,"shipping_method":null,"estimated_delivery":"2015-11-16T22:00:00-02:00","shipping_address":{"street":"TRAVESSA Querer\u00e1","number":"CASA 21","detail":"STIEP - RUA DA FACULDADE FIB, PROX AO RESTAURANTE MARINATA","neighborhood":"Stiep","city":"Salvador","region":"BA","country":"BR","postcode":"41770040"},"billing_address":{"street":"TRAVESSA Querer\u00e1","number":"CASA 21","detail":"Endereco do cliente","neighborhood":"Stiep","city":"Salvador","region":"BA","country":"BR","postcode":"99999999"},"customer":{"name":"nomedo cliente","email":"NAO_INFORMADO@NAO_INFORMADO.NAO.BR","vat_number":"000000000","phones":["00 00000000"]},"items":[{"id":"925_S_122","name":"Colch\u00e3o Castor Espuma Sleep Max D45 c/18 alt(15117) -Casal-1,38x1,88x0,18","qty":1,"original_price":759.3,"special_price":759.3}],"status":{"code":"13","label":"Pagamento Confirmado Aguardando Previs\u00e3o de Entrega","type":"APPROVED"},"invoices":[],"shipments":[]}


To order prints total_ordered the field ( oJSON1.data ( " total_ordered " )) The system prints the number 863.58 without the Point Printing Integer 86358 automatically , if the number is 863.5 it prints 8635

All of the number of field station going IT. How do I print the paragraph IT field correctly ( 863.58 )

The problem happens after capturing the information at aspJson1.17.asp

Estou tentando pegar o valor do pedido no campo total_ordered que vem 863.58 porém quando capturo ele transforma o numero em 86358sem o ponto. Em pedidos que esta 863.8 ele transforma em 8638 sem o ponto. Enfim tenho como fazer com que o jsonasp capture esses valores sem tirar o ponto para que eu possa tratar isso no codigo?

Reply all
Reply to author
Forward
0 new messages