Path: ...!weretis.net!feeder8.news.weretis.net!news.imp.ch!news.alphanet.ch!alphanet.ch!.POSTED!not-for-mail From: robby Newsgroups: fr.sci.maths Subject: =?UTF-8?B?UmU6IFLDqXNvdWRyZSBjZXR0ZSDDqWdhbGl0w6k=?= Date: Tue, 6 Jun 2023 21:07:10 +0200 Organization: Posted through news.alphanet.ch Message-ID: References: <647e4d83$0$3196$426a74cc@news.free.fr> <647eed0f$0$7665$426a34cc@news.free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 6 Jun 2023 19:07:12 -0000 (UTC) Injection-Info: shakotay.alphanet.ch; posting-account="robby"; logging-data="4642"; mail-complaints-to="usenet@alphanet.ch"; posting-host="d51d47ea9a5963d5e81e74ade6bd0cf8.nnrp.alphanet.ch" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Cancel-Lock: sha256:cFg+eB+d1AK2sWm4G7YiptU8AvsZNbMNyjoHcpP9SdE= Content-Language: fr In-Reply-To: <647eed0f$0$7665$426a34cc@news.free.fr> Bytes: 1684 Lines: 13 Le 06/06/2023 à 10:23, Michel Talon a écrit : > En ce qui concerne python c'est un langage qui n'est pas fait pour > traiter correctement les rationnels, sauf à utiliser un module > supplémentaire. Par exemple on peut obtenir les surprises suivantes: oui, je connais des langages où mod( 33. , 33. ) = 33. , pour les mêmes problème d'arrondi. ça surprend un peu, au début :-) et de même, x/x ne fait exactement 1 que pour certains x. -- Fabrice