Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

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: 5,596
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:

http://www.cplusplus.com/reference/cstdio/fprintf/
"X Unsigned hexadecimal integer (uppercase)"

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

--Nasser




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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.