X-Received: by 10.129.155.210 with SMTP id s201mr19045526ywg.9.1453748043910; Mon, 25 Jan 2016 10:54:03 -0800 (PST) X-Received: by 10.50.164.226 with SMTP id yt2mr191180igb.3.1453748043840; Mon, 25 Jan 2016 10:54:03 -0800 (PST) Path: csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!94no7240750qgt.1!news-out.google.com!l1ni7573igd.0!nntp.google.com!o2no6088611iga.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: it.comp.lang.javascript Date: Mon, 25 Jan 2016 10:54:03 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=95.237.71.130; posting-account=Fu6UZwkAAADyje3seOVJZNxhz9R8iwvg NNTP-Posting-Host: 95.237.71.130 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4c245038-5fb5-48e5-be29-e77ee48e6449@googlegroups.com> Subject: toLocaleString From: Roberto CORRADO Injection-Date: Mon, 25 Jan 2016 18:54:03 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Received-Bytes: 1370 X-Received-Body-CRC: 915715711 Xref: csiph.com it.comp.lang.javascript:7989 cosa fareste in questa situazione? x=5263.474999999999; y=4210.78; z=x-y; alert(x.toLocaleString('it-IT',{minimumFractionDigits: 2, maximumFractionDigits: 2})); // ie{>6} return -> 5.263,47 // mozilla return -> 5.263,48 alert(z.toLocaleString('it-IT',{minimumFractionDigits: 2, maximumFractionDigits: 2})); // ie{>6} return -> 1.052,69 // mozilla return -> 1.052,70 Grazie! -- RC