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;




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: