Add scalbn, ilogb, logb and tests and docs.
Implement exact base-10 floating point to rational conversion.