Just a quick question, did I do this correctly?
Not too good with the way the casting works in C...
Thx.
Regards,
Jules
Not too good with the way the casting works in C...
Thx.
Regards,
Jules
Code:
'C++ code... 'double m_dLowerLimit; // lower bounds 'double m_dUpperLimit; // upper bounds 'nCharacters = abs((int)log10(fabs(m_dUpperLimit))) ; 'nCharacters = max(nCharacters, abs((int)log10(fabs(m_dLowerLimit)))) ; 'PB code... GLOBAL m_dLowerLimit AS DOUBLE GLOBAL m_dUpperLimit AS DOUBLE LOCAL nTemp AS INTEGER nTemp = LOG10( ABS(m_dUpperLimit) ) nCharacters = ABS( nTemp ) nTemp = LOG10( ABS( m_dLowerLimit) ) nCharacters = MAX( nCharacters, ABS( nTemp ) )
Comment