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

2012: Python

    "{:10.2f}".format(x)


Yes and no. You still need to print it.


Fine. This is the equivalent of sprintf.




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

Search: