T Tanner New Member Licensed User Dec 28, 2007 #1 Hey Guys, How can I have a textbox show only 4 places past the decimal point? Tried Format command, but I must be missing something. code: Sub Button1_Click c=(0.5*a) d=(2*Sqrt(2*c*b-b*b)) textbox4.Text=d ''' I want this to return 4 places'''':sign0085: app_start End Sub code: Thanks, Tanner
Hey Guys, How can I have a textbox show only 4 places past the decimal point? Tried Format command, but I must be missing something. code: Sub Button1_Click c=(0.5*a) d=(2*Sqrt(2*c*b-b*b)) textbox4.Text=d ''' I want this to return 4 places'''':sign0085: app_start End Sub code: Thanks, Tanner
agraham Expert Licensed User Longtime User Dec 28, 2007 #2 textbox4.Text=Format(d,"N4") should do it!
T Tanner New Member Licensed User Dec 29, 2007 #3 Thanks Agraham, That worked!! The help file says: (Format(1234.5678,"N2")) Will display: 1,234.57 The extra ()'s were throwing me. Thanks again, Jerry
Thanks Agraham, That worked!! The help file says: (Format(1234.5678,"N2")) Will display: 1,234.57 The extra ()'s were throwing me. Thanks again, Jerry