ajn2004
09-03-2004, 07:35 AM
Hi
Don't know if this is possible so I thought I'd ask you guys.
I need to format data so it is rendered on the page in 2 decimal places. Is it possible to do this with CSS?
The reason I need to do this is because the data is being exported to Excel and when this happens I lose the 2 decimal places:
E.g. £6.50 is displayed as £6.5
I have noticed that when the data is exported to Excel it keeps the CSS style formatting, so then thought if I could get CSS to enforce 2 decimal places on the .aspx page it would then enforce this in Excel?
Feel free to suggest other ways of doing this...
Thanks
AJN
Don't know if this is possible so I thought I'd ask you guys.
I need to format data so it is rendered on the page in 2 decimal places. Is it possible to do this with CSS?
The reason I need to do this is because the data is being exported to Excel and when this happens I lose the 2 decimal places:
E.g. £6.50 is displayed as £6.5
I have noticed that when the data is exported to Excel it keeps the CSS style formatting, so then thought if I could get CSS to enforce 2 decimal places on the .aspx page it would then enforce this in Excel?
Feel free to suggest other ways of doing this...
Thanks
AJN