Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

AT&T:

b = (int)5s/100; // where b is the number of bars, and s is signal strength

Apple:

b = (int)5s/100; if(b > 2) b += 2;



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: