Char to Decimal conversion

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Carlo Gambino
    New Member
    • Feb 2008
    • 12

    Char to Decimal conversion

    I came across this article on MSDN and was hoping someone here can help me understand a similar way to accomplish this with Python?
  • jlm699
    Contributor
    • Jul 2007
    • 314

    #2
    Originally posted by Carlo Gambino
    I came across this article on MSDN and was hoping someone here can help me understand a similar way to accomplish this with Python?
    ord() returns the decimal ordinal of a single char

    [CODE=python]
    >>> ord('c')
    99
    [/CODE]

    Comment

    Working...