What kind of magic does QString().setNum() do?
February 16, 2012 7:32 PM Subscribe
What kind of magic does QString().setNum() do to convert -1413011644 to 2881955652?
I'm porting some code written in QT4 to javascript. The very last part of the process calls QString().setNum() on a number and outputs it. I have all the code working that generates that number, but can't output it without knowing what QString().setNum() does.
posted by crawl to computers & internet (6 answers total)
-1413011644 is the value if that's treated as a signed number. 2881955652 is how it's read if it's unsigned.
posted by Chocolate Pickle at 7:37 PM on February 16, 2012 [1 favorite]