Hi,
I have some textboxes in windows Form in C#. In those textboxes, I am filling double (63.00000) values automatically from database. but I want to limit decimal places to 2 (63.00). can any one help me in that.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Apr 3, 2014, 6:07 AM EDT
saurabh mittal152 reputationPosted Apr 3, 2014, 6:23 AM EDT
If u want to limit it with 2 places than change field's datatype AS decimal(18,2) in
sql server.here 18 is the limit before decimal and 2 is the limit after decimal.
thanks