This might help. $no_trailing_zeroes = preg_replace("/0+$/","",$trailing_zeroes); > Dear friends, > > I am accessing MySQL database using apache and php. > I have to display a double integer field without trailing zeros. > The number of digits after the decimal point varies. > > I have tried searching the archive and did not get any previous questions. > > Kindly help me in this regard. > > Thanking you. > Sincerely, > Raveendra Reddy B > National Law School > Bangalore > India > E-mail: [EMAIL PROTECTED] > > ----- End forwarded message ----- > -- http://www.artwells.com/ That which indicates nothing introduces everything. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]