int - Why is QString::number() ignoring most significant digit? -


this confuses me quite bit. what's deal in example below? i'm running on armv7 architecture, i've seen posts online saying arm doesn't support doubles same way x86 architecture does, still i'm using int.

i've seen c functions in past parse numbers strings , behave digit furthest left being interpreted base (e.g. if leading digit 0, function interprets value octal or if leading chars 0x interprets hex).

if integer single digit, string empty. help?

qstring bleh; int = 9645; bleh.setnum(i, 10); // bleh == "645"  why?? // same thing when bleh = qstring::number(i);  why?? 

i'll answer own question here. appears gdb truncating first character these strings. not sure why, it's not first time i've experienced funny debugger behavior qt.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -