Syntax :
round(var_float, 2)
Penggunaan :
round(2.675, 2)
Hasil :
2.67
Sumber : http://docs.python.org/tutorial/floatingpoint.html
Advertisements
Usefull Little Notes
2012/05/16
Syntax :
round(var_float, 2)
Penggunaan :
round(2.675, 2)
Hasil :
2.67
Sumber : http://docs.python.org/tutorial/floatingpoint.html
Leave a Reply