Link to home
Create AccountLog in
Avatar of David Svedarsky
David SvedarskyFlag for United States of America

asked on

Change sample code to show percent instead of whole number

VB.net & Sql Server 2005 - databound textboxes:

 In the code below: can someone change this code so TextBoxOverheadPercent is a % instead of a whole number? example (.35) instead of (1.00)

TextBoxOHAmount.Text = (TextBoxOverheadPercent.Text) * (TotalTextBox.Text)

TextBoxOverheadPercent: data type is decimal(18, 0)
Others: data type is Int.

Thanks!
SOLUTION
Avatar of Rimvis
Rimvis
Flag of Lithuania image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
ASKER CERTIFIED SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of David Svedarsky

ASKER

Thanks!