Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear sir,

I'm working on a library project. The price of all books store in money data type in sql server 2008. It shows the correct format in sql select statement. But when I'm show the data in a grid view it shows four zero after decimal point.
Thanks in advance
Bigyan ranjan sahoo


select UGC,BookName,AuthorName,Edition,PublisherName,AccessingNo,Segment,Department,RackCatagory,Type,DamagedStatus,IssueStatus,round(Cost,2) AS Cost,BillDate,PurchaseDate,DateofRecieved,CompleteAddress,DateOfPublisher from tblBookStore where AuthorName='R. N. Nanda'
Posted
Comments
Basmeh Awad 3-Feb-14 7:07am    
so after using ROUND fonction still you are not getting the expected result????
bigyan sahoo 4-Feb-14 2:45am    
yes sir. it shows me four zeros after the decimal point like- 100.0000

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900