math/gen: fix ilogb, logb and modf in mp, change integer print fmt