i need help with VB.NET
ok, i hope somebody can help me out because i am so stuck and have looked in the book and can't find ----.
here's the problems, i need to know the coding to have the numbers displayed to only go 2 numbers past the decimal point. and how would i make a button to clear the form to start over. kinda like a reset button. any help would be appriciated. ??? |
Re: i need help with VB.NET
ok i figured out how to reset the form but still don't know how to get the number to stop after two past decimal.
|
Re: i need help with VB.NET
in vb it's like precision(2) or setprecision(2)... I am 99% on that one.
Matt |
Re: i need help with VB.NET
couldn't you do something like .... and use a substring.... (indexof("."),2)
|
Re: i need help with VB.NET
Originally Posted by jeffsciv23
ok i figured out how to reset the form but still don't know how to get the number to stop after two past decimal.
|
Re: i need help with VB.NET
Store the numeric value in a string. Let, d, be your decimal and s be your string:
d=1.216589765 s=d.ToString("0.00") Voila! -Tim |
All times are GMT -5. The time now is 02:20 PM. |
© 2024 MH Sub I, LLC dba Internet Brands