"Run-time determination of floating-point machine parameters" - читать интересную книгу автора (Cody.)