douyou7797 2017-02-02 07:50
浏览 96
已采纳

Golang数字基数转换

I was wondering, how do you convert a base10 number from one base to another without usage of strconv in Golang ?

Could you please give me some advice ?

  • 写回答

3条回答 默认 最新

  • dongxian5735 2017-02-03 00:36
    关注

    Use the math package and a log identify:

    log_77(x) = log(x) / log(77)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?