Download Is there an operator to calculate percentage in Python? book pdf free download link or read online here in PDF. Read online Is there an operator to calculate percentage in Python? book pdf free download link book now. All books are in clear copy here, and all files are secure so don't worry about it. This site is like a library, you could find million book here by using search box in the header.
Brian's answer (a custom function) is the correct and simplest thing to do in general. But if you really wanted to define a numeric type with a (non-standard) '%' operator, like desk calculators do, so that 'X % Y' means X * Y / 100.0, then from Python 2.6 onwards you can redefine the mod() operator:
Read : Is there an operator to calculate percentage in Python? pdf book online Select one of servers for direct link: |
---|