[ODE] FPU rounding mode problem

Konstantin Voloshin volk-ode at yandex.ru
Tue Oct 26 22:42:28 MST 2004


Dear community,

There's an assumption in 'dRandInt(int)' that casting a positive 'double' to 'int' will
perform rounding to a lesser integer. In my case it was a misussumption and was
fatal to random constraints reorderer in quick step.

Perhaps, it would be reasonable to put 'UASSERT' in 'dRandInt', telling the user that
there's something wrong with current FPU rounding mode.

Does anyone know about other places where rounding mode can cause problems?

Konstantin Voloshin



More information about the ODE mailing list