In python if you us it as calculator 4/100 you will get 0.
If you are looking to see decimal digits add a decimal value
>>> 4 / 100.0
Alternative way is to say
>>> 4 / float (100 )
Link to discussion : link
This entry was posted by Interview questions on February 17, 2013 at 8:31 pm, and is filed under Uncategorized. Follow any responses to this post through RSS 2.0.
You can leave a response or trackback from your own site.
Your email address will not be published. Required fields are marked *