Gawk printf problem with negative numbers
kenneth.shaffer@sciatl.com
kenneth.shaffer@sciatl.com
Wed Oct 29 06:04:00 GMT 2003
I expected the output of a negative 1234 in hex to look like 0xfffffb2e:
> echo |gawk '{n = -1234; printf("0x%x\n",n+0)}'
0x-1234
> gawk --version
GNU Awk 3.1.3
running under cygwin for the PC.
I believe the INTMAX_MIN mentioned in an earlier thread has something to do with it.
--
Ken Shaffer
Staff Software Engineer
770-236-3421
kenneth.shaffer@sciatl.com
- - - - - - - Appended by Scientific-Atlanta, Inc. - - - - - - -
This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 31163 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20031029/48df8307/attachment.obj>
-------------- next part --------------
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list