Bill Allombert on Wed, 13 Apr 2011 13:58:05 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: I/O in hex?


On Wed, Apr 13, 2011 at 01:11:51PM +0300, Eugene N wrote:
> Hello
> 
> Thank you for being always helpful! I have another small question...
> 
> I noticed gp usually accepts/outputs info in dec.
> 
> And lets say, i need to feed the output in an external app, that waits for a
> hex c string: "07A8...", or
> on the other hand, what if i want to input a value in hex, like
> p = 45FA6...
> b = Mod(C56B56..., p)

You can output in hex using printf("%x",1234).
However there are no facility for input in hex.

Cheers,
Bill.