The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: sprintf ('%X', -10) == '-1.000000e+01'
Replies: 3   Last Post: May 6, 2013 10:01 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Nasser Abbasi

Posts: 6,677
Registered: 2/7/05
Re: sprintf ('%X', -10) == '-1.000000e+01'
Posted: May 6, 2013 9:37 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 5/6/2013 8:29 AM, kzelechowski@e3tech.local wrote:
> Why? The on-line help says the result should be typeset in hexadecimal
> digits, that would be '-A', wouldn?t it?

according to:
"X Unsigned hexadecimal integer (uppercase)"

I do not know the format for signed conversion to hex.


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.