Tests if a given double value is a legal double from the standpoint of processor.
BOOL is_double_legal( double * pr )
TRUE if legal, otherwise FALSE.
EX1
void is_double_legal_ex1() { double * pr, dTest = (1.7e+307)*10000 ; pr = &dTest; bool bRet = is_double_legal(pr); if(true == bRet) out_str("The double is legal"); else out_str("The double is illegal"); dTest = 3.569; bRet = is_double_legal(pr); if(true == bRet) out_str("The double is legal"); else out_str("The double is illegal"); }
origin.h