decimal place

ariel81

Registered User.
Local time
Today, 09:54
Joined
Dec 31, 2006
Messages
75
i can't get two decimal place...anyone can advice me how to get two decimal places?

e.g:
Code:
   Dim a As Integer
   Dim b As Integer
   Dim c As Single
        
        a = 18
        b = 7
        c = a / b

    f.Text138 = c

the result i got in textbox "Text138" is 2.571429 the "Text138 properties" for "Decimal Places was set to 2". However i still get the result as 2.571429
 
i have already Dim C as Single, see above
 
"Text138 properties" for "Decimal Places was set to 2".
Did you also set the format property to 'Fixed'?

Peter
 

Users who are viewing this thread

Back
Top Bottom