try expr 33/9.0 In C/C++ what you are doing is an integer divide, which returns an integer. To get a float, you would need to either add the decimal place, which causes the result to hve the higher precision, or you'd have to cast to float... > -----Original Message----- > From: Anthony Capone [SMTP:[EMAIL PROTECTED]] > Sent: Sunday, February 18, 2001 9:54 PM > To: [EMAIL PROTECTED] > Subject: OT: EXPR > > How do I get EXPR do display more than one decimal place? So, for example > if > I have the expression: > > expr 33 / 9 > right now the answer is 3 > it should be 3.66666667 > how I tell expr to diplay 3 decimal places?? > > Thanks again, > > Anthony > > > > _______________________________________________ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list