Categories: Python | S60 | Code Examples | How To
This page was last modified 18:25, 10 April 2008.
Formatting strings on pys60
From Forum Nokia Wiki
This code contains formatting string case of variable v, in which dot(.) is replaced by a comma (,) in the formatted output. This may be useful for formatting numerical strings in python for s60 as it lacks locale module.
v = 1.23456789 print ("%4.2f"%v).replace(",", ".") appuifw.note(u"Number: "+str(("%4.2f"%v).replace(",", ".")), 'info')
See also : Related Post
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Is there support for matplotlib in the pys60? | SilviaUoP | Python | 2 | 2008-04-29 09:06 |
| CAknTextQueryDialog | nikohaatainen | Symbian User Interface | 1 | 2004-05-04 08:18 |
| 中文字符串如果使用 | jyjlzw | Symbian | 11 | 2007-07-31 16:07 |
| menu with different language | cds.ds | Symbian User Interface | 5 | 2008-01-21 10:09 |
| [announce] A new Forum Nokia Champion dedicated to PyS60 | cyke64 | Python | 4 | 2007-01-26 12:50 |
