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


Groups > fr.comp.lang.python > #3952

Re: Affichage en notation scientifique.

From Dominique <zzz@aol.com>
Newsgroups fr.comp.lang.python
Subject Re: Affichage en notation scientifique.
Date 2022-09-14 18:33 +0200
Organization A noiseless patient Spider
Message-ID <tfsvo3$31fgs$1@dont-email.me> (permalink)
References (1 earlier) <87a672xbrj.fsf@universite-de-strasbourg.fr.invalid> <exposant-20220914155942@ram.dialup.fu-berlin.de> <tfsrpk$30rm6$1@dont-email.me> <log10-20220914164259@ram.dialup.fu-berlin.de> <Decimal-20220914170946@ram.dialup.fu-berlin.de>

Show all headers | View raw


Le 14/09/2022 à 18:10, Stefan Ram a écrit :
> ram@zedat.fu-berlin.de (Stefan Ram) writes:

> 
>    (Mais on peut probablement aussi utiliser la longueur du
>    nombre entier comme chaîne de caractères pour calculer le
>    logarithme décimal.)

J'avais pensé à cette méthode... J'ai préféré l'approche arithmétique, 
mais vous avez raison, l'anomalie (14) que vous soulevez dans le 
précédent post est ennuyeuse. Je peux la contourner avec un 
len(str(num)) et j'aurai mon exposant + 1. C'est sans doute l'option que 
je vais adopter.

Merci pour le tuyau,

Dominique

Back to fr.comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Affichage en notation scientifique. Dominique <zzz@aol.com> - 2022-09-14 15:55 +0200
  Re: Affichage en notation scientifique. Dominique <zzz@aol.com> - 2022-09-14 16:17 +0200
  Re: Affichage en notation scientifique. Alain Ketterlin <alain@universite-de-strasbourg.fr.invalid> - 2022-09-14 16:37 +0200
    Re: Affichage en notation scientifique. Dominique <zzz@aol.com> - 2022-09-14 17:25 +0200
      Re: Affichage en notation scientifique. Dominique <zzz@aol.com> - 2022-09-14 18:33 +0200
      Re: Affichage en notation scientifique. Alain Ketterlin <alain@universite-de-strasbourg.fr.invalid> - 2022-09-14 18:59 +0200

csiph-web