On Mon, Aug 25, 2008 at 9:48 AM, Peter Ritchie <[EMAIL PROTECTED]> wrote: > > I would recommend something like this: > > double tempAmount = objMyObject.Amount * 100.0; > uint nIntAmount = Math.Round(tempAmount);
Ah, *that*'s where the rounding function is hiding. Or you could just use "Math.Round(amount, 2)" to round to the second decimal place. -- Curt Hagenlocher [EMAIL PROTECTED] =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com