~3;
val it = 0x~3 : int
~12;
val it = 0x~C : int
This is exactly what I expect to see for a negative numbers. Since I don't intend to make a negative number in 2's complement format.
Tjark Weber wrote:
On Tue, 2010-01-12 at 08:39 +0000, David Matthews wrote:
PolyML.PrettyString("0x" ^ Int.fmt StringCvt.HEX x)
Note that this is arguably flawed for negative x.
Regards, Tjark
polyml mailing list polyml@inf.ed.ac.uk http://lists.inf.ed.ac.uk/mailman/listinfo/polyml