我想使用Ruby获得Fixnum的基数10对数,但发现未定义n.log或n.log10.Math :: log已定义,但使用的基数不同于10.
获得Fixnum的10对数的最简单方法是什么?
ruby math logarithm
logarithm ×1
math ×1
ruby ×1