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 ]
Steven Lord

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

<kzelechowski@e3tech.local> wrote in message
> Why? The on-line help says the result should be typeset in hexadecimal
> digits, that would be '-A', wouldn?t it?

It should ... if -10 were an unsigned integer. Note where the row in the
format specification table that lists the %X format is located, and what the
corresponding value type is.

Steve Lord
To contact Technical Support use the Contact Us link on

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.