From help-octave-bounces at octave dot org Mon Apr 17 15:45:29 2006 Subject: Re: hex format From: Quentin Spencer To: NZG Cc: help-octave at octave dot org Date: Mon, 17 Apr 2006 15:35:36 -0500 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 > I think what you're seeing here is a direct hex output of the internal floating point representation of 2, which includes an exponent and mantissa. > Obviously I can just pull the number out and put in the OS's scientific > calculator, but surely there is an Octave function for this, isn't there? > Take a look at the dec2hex function. -Quentin _______________________________________________ Help-octave mailing list Help-octave at octave dot org https://www.cae.wisc.edu/mailman/listinfo/help-octave