Hi,
Use "Round" function. You can add "c=Round(c,10)" after your equation lines. This 10 is number of decimal places; so you can change it according to your needs. -----Original Message----- From: irfan_younis [mailto:[EMAIL PROTECTED] Sent: Thursday, February 17, 2005 5:59 PM To: [email protected] Subject: [vbhelp] Conversion 5.555556E-02 to 0.0555556? I write small program in VB6 as given below; Private Sub cmccalc_Click() Dim a As Double Dim b As Double Dim c As Double a = "1" b = "18" c = 1 / 18 Debug.Print c End Sub Then I get answer "5.55555555555556E-02". If I use window calculator then I get answer 0.055555555555555555555555556. Any body can I tell me how I can get answer same as window calculator? '// ======================================================= Rules : http://ReliableAnswers.com/List/Rules.asp Home : http://groups.yahoo.com/group/vbHelp/ ======================================================= Post : [email protected] Join : [EMAIL PROTECTED] Leave : [EMAIL PROTECTED] '// ======================================================= Yahoo! Groups Links '// ======================================================= Rules : http://ReliableAnswers.com/List/Rules.asp Home : http://groups.yahoo.com/group/vbHelp/ ======================================================= Post : [email protected] Join : [EMAIL PROTECTED] Leave : [EMAIL PROTECTED] '// ======================================================= Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/vbhelp/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
