| Reply | « Previous Thread | Next Thread » |
|
Code:
a=15/100 print a i wanna write 0.15 how can i do it |
| cool_eagle |
| View Public Profile |
| Find all posts by cool_eagle |
|
Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
Offline
Forum Nokia Champion
|
|
Code:
>>> from __future__ import division >>> a=15/100 >>> print a 0.15 |
|
Quote:
![]() |
| cool_eagle |
| View Public Profile |
| Find all posts by cool_eagle |
|
it will also work without the import with:
15/100.0 ![]() Nokia E66 PyS60 1.4.4 final |
|
Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
gaba88
Offline
Forum Nokia Champion
|
|
hi
ya RICH is correct you can do that without importing also by initializing any one of the quantity to a folating point quantity. Regards Gaba88 Gargi Das- http://gargidas.blogsot.com Forum Nokia Python Wiki Learn Python at http://mobapps.org/PyS60 |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Problem with eglSwapBuffers and heap corruption | greatape | Symbian Media (Graphics & Sounds) | 2 | 2007-05-24 04:35 |
| netcards - Problem with opening adapter | kernj | Symbian Tools & SDKs | 5 | 2007-01-10 09:56 |
| WAP service problem on Apache | bigg_o | Browsing and Mark-ups | 3 | 2005-04-17 17:05 |
| Problem: S60 SDK for CW in PC with .NET | anttij | Carbide.c++ IDE and plug-ins | 1 | 2005-02-28 12:36 |
| wireless problem | sash_mca | General Browsing | 0 | 2003-06-06 12:34 |