| | |
Two Decimal Places
Please support our VB.NET advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
Hi,
Could you please show me how to get
1.9
to show with two decimal places (1.90)
you can use if you want to bring the decimal places down to two
but how do you increase from zero or one decimal place up to two?
Thanks
Peter
Could you please show me how to get
1.9
to show with two decimal places (1.90)
you can use
VB.NET Syntax (Toggle Plain Text)
Math.Round(1.99999999, 2)
but how do you increase from zero or one decimal place up to two?
Thanks
Peter
Hi,
Check this :
Regards
Veena
Check this :
TextBox1.Text = Format(1.9, "0.00") TextBox2.Text = Format(22, "0.00")
Regards
Veena
•
•
Join Date: May 2009
Posts: 1
Reputation:
Solved Threads: 0
•
•
•
•
Hi,
Could you please show me how to get
1.9
to show with two decimal places (1.90)
you can useif you want to bring the decimal places down to twoVB.NET Syntax (Toggle Plain Text)
Math.Round(1.99999999, 2)
but how do you increase from zero or one decimal place up to two?
Thanks
Peter
VB.NET Syntax (Toggle Plain Text)
CStr(dblResult.ToString("#,##0.00"))
Last edited by eGadgetGuy; May 10th, 2009 at 7:53 pm.
![]() |
Similar Threads
- problem with decimal places (Visual Basic 4 / 5 / 6)
- C++ question(Decimal places)very weird (C++)
- Excel97 decimal places (Windows Software)
- Double values with two decimal places (C++)
- setting the number of decimal points in double varibale (C)
- Using Decimal Numbers instead of Integers in C (C)
Other Threads in the VB.NET Forum
- Previous Thread: Creating an error message
- Next Thread: Lisview + Small Image List
Views: 33599 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
"crystal .net .net2005 2008 access add application array assignment basic box button buttons center class click code combo convert cpu data database datagrid datagridview design designer dissertation dissertations dissertationthesis dosconsolevb.net editvb.net employees error excel exists firewall function image images isnumericfuntioncall listview login map math memory mobile module msaccess mssqlbackend mysql navigate net opacity page pan picturebox port print printing printpreview problem record refresh regex reports" reuse right-to-left save savedialog search serial socket sorting sql sqldatbase storedprocedure string structures studio temp textbox timer txttoxmlconverter upload useraccounts usercontol usercontrol vb vb.net vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet vista visual visualbasic visualbasic.net visualstudio2008 web wpf xml





