Tuesday, 3 September 2013

easyxf number format - xlwt Django

easyxf number format - xlwt Django

I'm using xlwt to create an excel file in django.
Does anyone know how I can format the decimal value of a number with easyxf?
My model provides a "cost" and "price" number both to the 4 decimal.
I would like for my cost number to be rounded in excel to the 0 decimal
place. And my price number to be rounded to the 2nd decimal place.
My cost style is:
product_cost_style = easyxf('font: height 240; alignment: horizontal center;)
My price style is:
product_price_style = easyxf('font: height 240; alignment: horizontal
center;)
I appreciate the time and expertise

No comments:

Post a Comment