HomemadeTurbo - DIY Turbo Forum

HomemadeTurbo - DIY Turbo Forum (https://www.homemadeturbo.com/)
-   General Discussion (https://www.homemadeturbo.com/general-discussion-6/)
-   -   i need help with VB.NET (https://www.homemadeturbo.com/general-discussion-6/i-need-help-vbulletin-net-27624/)

J-MAN 10-06-2004 06:57 PM

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. ???

J-MAN 10-06-2004 10:38 PM

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.

Johnyquest 10-07-2004 10:04 AM

Re: i need help with VB.NET
 
in vb it's like precision(2) or setprecision(2)... I am 99% on that one.

Matt

stingray 10-07-2004 12:32 PM

Re: i need help with VB.NET
 
couldn't you do something like .... and use a substring.... (indexof("."),2)

Project CRXtacy 10-08-2004 09:06 PM

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.

damn thats hard i been trying and i cant get it man )=- sry if i do then i can tell you.

TekPhobia 10-08-2004 09:54 PM

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