A short number formatting question

Not exactly the question I would expect here, especially because you seem
to ask for C, not for Python.
In Python I would suggest a transformation to a string which can be
formatted easily.

Mike

---------+---------------------------->
        > "Jean-Michel |
        > Fauth" |
        > <jmfauth@bluewin.|
        > > >
        > >
        > 19.08.2003 17:12 |
        > Please respond to|
        > wxPython-users |
        > >
---------+---------------------------->

  >------------------------------------------------------------------------------------------------------------------------------|
  > >
  > To: <wxpython-users@lists.wxwindows.org> |
  > cc: |
  > Subject: [wxPython-users] A short number formatting question |
  >------------------------------------------------------------------------------------------------------------------------------|

Hi all,

How do I formate a number (eg integer) so that, for n = 12345678,
a print n looks like 12 345 678 or 12'345'678 instead of 12345678 ?
Is it possible with a print ("%fomat_number") % (n) ?
Thanks in advance.
I checked my C books, but...

Jean-Michel Fauth, Switzerland

···

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org