Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.java > #9345

Re: che arrotondamento fa?

Path csiph.com!aioe.org!.POSTED.FDPvhXHuEClGcdbn8JVezA.user.gioia.aioe.org!not-for-mail
From "Dr.UgoGagliardelli" <do.not.spam@me.please>
Newsgroups it.comp.java
Subject Re: che arrotondamento fa?
Date Sun, 6 Oct 2019 10:21:14 +0200
Organization Aioe.org NNTP Server
Lines 16
Message-ID <qnc884$1cq$1@gioia.aioe.org> (permalink)
References <qna435$kom$1@gioia.aioe.org>
NNTP-Posting-Host FDPvhXHuEClGcdbn8JVezA.user.gioia.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=iso-8859-15; format=flowed
Content-Transfer-Encoding 8bit
X-Complaints-To abuse@aioe.org
User-Agent Mozilla/5.0 (Windows NT 6.3; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0
X-Notice Filtered by postfilter v. 0.9.2
X-Antivirus Avast (VPS 191006-0, 06/10/2019), Outbound message
X-Antivirus-Status Clean
Content-Language it-IT
Xref csiph.com it.comp.java:9345

Show key headers only | View raw


Il 05.10.2019 14.59, Annibale ha scritto:
>   float x = (float) 23123.456;
> 
> ottengo:
>   x=23123.455
> 
> ma usa sempre i millesimi!
> Perchè allora non scrive 23123.456 ?
> 
> Se arrotonda dovrebbe stampare solo fino ai centesimi :
> 23123.45
> 
> Grazie
Piu' che di arrotondamento, secondo me e' un troncamento. Un float e' un 
IEEE 754 single-precision floating-point la cui precisione e' di circa 
circa 7 digit.

Back to it.comp.java | Previous | NextPrevious in thread | Find similar


Thread

che arrotondamento fa? Annibale <vannnnia1991@gmail.com> - 2019-10-05 14:59 +0200
  Re: che arrotondamento fa? 4ndre4 <4ndre4@4ndre4.invalid> - 2019-10-05 16:38 +0100
    Re: che arrotondamento fa? Annibale <vannnnia1991@gmail.com> - 2019-10-08 21:05 +0200
      Re: che arrotondamento fa? "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2019-10-09 07:45 +0200
        Re: che arrotondamento fa? Annibale <vannnnia1991@gmail.com> - 2019-10-10 01:15 +0200
  Re: che arrotondamento fa? "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2019-10-06 10:21 +0200

csiph-web