Deutsch   English   Français   Italiano  
<6268145a$0$18734$426a74cc@news.free.fr>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.mixmin.net!proxad.net!feeder1-2.proxad.net!cleanfeed2-b.proxad.net!nnrp1-2.free.fr!not-for-mail
From: yves <yves@free.invalid>
Subject: Re: arrondir une =?iso-8859-1?Q?r=E9ponse?=
Newsgroups: fr.comp.lang.python
References: <5rudnb0rPIS2Yvr_nZ2dnUU7_83NnZ2d@giganews.com>
	<62681374$0$18734$426a74cc@news.free.fr>
User-Agent: Pan/0.144 (Time is the enemy; 28ab3ba git.gnome.org/pan2)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Date: 26 Apr 2022 15:48:42 GMT
Lines: 25
Message-ID: <6268145a$0$18734$426a74cc@news.free.fr>
Organization: Guest of ProXad - France
NNTP-Posting-Date: 26 Apr 2022 17:48:42 CEST
NNTP-Posting-Host: 89.226.117.233
X-Trace: 1650988122 news-2.free.fr 18734 89.226.117.233:51154
X-Complaints-To: abuse@proxad.net
Bytes: 1436

Le Tue, 26 Apr 2022 15:44:52 +0000, yves a écrit:

>> ex: écart-type obtenu = 0,9654485745112...
>> J'obtiens pour erreur " fonction :  2 arguments seulement ".
> 
> Ta question est un peu sibylline.
> 
> Quelle est cette fonction dont tu parles ?
> Qui l'a codée ? toi-même ?
> 
> Sinon, pour arrondir, la fonction dans python s'appelle "round".

>>> round(0.965448574511,2)
0.97

Note bien le . dans 
0.965448574511

Si tu utilises une virgule
0,965448574511
ça ne fonctionnera pas.

@+
-- 
Yves