Sage vs Girder codes

I'm trying to teach sage tv codes for controlling sage (i.e. receiving, not transmitting), and I think I'm running into the problem that the first code received (learned) isn't the right one. When I watch in girder some of the buttons on my remote will trigger one or two codes before settling. So I want to copy the constant codes that I see from girder to sage. But the codes I see in the sagetv properties file are 19 digits, all decimal, while the girder codes are hexadecimal. How do I convert them? It doesn't appear to be a straight hexadecimal to decimal conversion...
Thanks.
--Brian
Thanks.
--Brian