|
From: | Quentin Spencer |
Subject: | Re: hex format |
Date: | Mon, 17 Apr 2006 15:35:36 -0500 |
User-agent: | Thunderbird 1.5 (X11/20060313) |
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
[Prev in Thread] | Current Thread | [Next in Thread] |