Zim

Inline Calculator - hex to dec conversion function?

Asked by mario bezzi

I should probably make this a reques, but wanted to check first.

Would it be possible to add a hex to dec conversion function to the Inline Calculator?

I see neither std Python nor c/math provide one..

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Zim Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) said :
#1

On Thu, Feb 28, 2013 at 2:15 PM, mario bezzi
<email address hidden> wrote:
> New question #223072 on Zim:
> https://answers.launchpad.net/zim/+question/223072
>
> I should probably make this a reques, but wanted to check first.
>
> Would it be possible to add a hex to dec conversion function to the Inline Calculator?
>
> I see neither std Python nor c/math provide one..

Yes makes sense

in python hex -> dec is done with int()
dec -> hex can be done by "%x" string formatting

Regards,

Jaap

Can you help with this problem?

Provide an answer of your own, or ask mario bezzi for more information if necessary.

To post a message you must log in.