From help-octave-bounces at octave dot org Mon Apr 17 16:33:38 2006 Subject: Re: hex format From: Donald J Bindner To: "Dmitri A. Sergatskov" Cc: help at octave dot org Date: Mon, 17 Apr 2006 16:27:01 -0500 On Mon, Apr 17, 2006 at 02:37:30PM -0600, Dmitri A. Sergatskov wrote: > On 4/17/06, NZG wrote: > > Whats a simple way to see a number in Octave in hex? > > I tried > > "format hex" > > but this isn't giving me what I want. > > 2 is not 0000000000000040 > > by any conversion I've ever seen > > When you type "2" it is double 2 which is different > from e.g. uint8(2) I think what you want is something like this: octave:1> printf( "%x\n", 12 ); c -- Don Bindner _______________________________________________ Help-octave mailing list Help-octave at octave dot org https://www.cae.wisc.edu/mailman/listinfo/help-octave