Hacker News new | past | comments | ask | show | jobs | submit login

That is not the author's code. That is pseudocode for one of the example answers that he is improving on.

The author's code gives an option for the units:

int unit = si ? 1000 : 1024;




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: