>>205
int expand(double x, int base, char str, char *len)
0 ≦ x < 1 を base 進法で表した小数部を最大 len 文字で str に書き込む。
書き込んだ文字数を返す。