wolfram alpha is a good place to do numbers: https://www.wolframalpha.com/input/?i=-1+%3C%3C+31
if you're on a mac, the calculator has a "programmer mode" which allows arbitrary manipulations of bits. On Sun, Apr 21, 2019 at 9:36 PM Pat Farrell <pat22...@gmail.com> wrote: > > I have a logic error in my calculation. I am getting -2147483648 in an int32 > This sure looks a lot like MinInt32, but I can't seem to be able to tell, all > my calculators want to blow up on -1 << 31 > > > I'm willing to bet that my value is +/- one from whatever MinInt32 is in > decimal form. > > Is this correct? > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.