Re: Formatting a str as a number - Okay, one more related thing...

Liste des GroupesRevenir à cl python 
Sujet : Re: Formatting a str as a number - Okay, one more related thing...
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.lang.python
Date : 31. Aug 2024, 19:00:11
Autres entêtes
Organisation : Stefan Ram
Message-ID : <str-20240831175845@ram.dialup.fu-berlin.de>
References : 1 2 3 4 5 6 7 8 9
ram@zedat.fu-berlin.de (Stefan Ram) wrote or quoted:
Looks like this "replace" deal is the go-to move, no two ways
about it. If there's some neck of the woods where it's SOP, you
might wanna roll with "locale.format_string". (Whipping up a custom
locale just for kicks is usually more trouble than it's worth.)

  The German DIN 5008 (their fancy-schmancy rules for writing
  and formatting) now says you got to use /spaces/ to separate
  thousands, and only recommends using periods for cold hard cash.

  If you just chill for a hot minute, Python's German locale will
  catch up, and you'll be golden.



Date Sujet#  Auteur
25 Aug 24 * Re: Formatting a str as a number10Stefan Ram
25 Aug 24 `* Re: Formatting a str as a number9Stefan Ram
27 Aug 24  +- Re: Formatting a str as a number1Stefan Ram
27 Aug 24  `* Re: Formatting a str as a number7Grant Edwards
31 Aug 24   +* Re: Formatting a str as a number - Okay, one more related thing...4Stefan Ram
31 Aug 24   i`* Re: Formatting a str as a number - Okay, one more related thing...3Stefan Ram
31 Aug 24   i +- Re: Formatting a str as a number - Okay, one more related thing...1Stefan Ram
1 Sep 24   i `- Re: Formatting a str as a number (Posting On Python-List Prohibited)1Lawrence D'Oliveiro
31 Aug 24   +- Re: Formatting a str as a number - Okay, one more related thing...1MRAB
2 Sep 24   `- Re: Formatting a str as a number - Okay, one more related thing...1dn

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal