Hi,

I have a problem with following code:

void calculateamount( long* l_amount )
{
double amount;

// amount gets calculated here
// the result is: 19.67

amount *= 100;
*l_amount = amount;

// then l_amount = 1966 and not 1967. WHY ????
// how can i prevent it?

}