将数字四舍五入到某个小数位数(不能是零)。
Rounding a number to a particular (non-zero) number of decimal places.
getScale,用于确定参数在小数点后支持的小数位数。
GetScale to determine the number of decimal digits after the decimal point that a parameter will support.
If I go back to that code from a moment ago, and I just rerun math3, notice how many places printed after the decimal point -- two?
如果刚才我回到那段代码中去,我们回到math3,请注意在小数点后面,会打印几位数呢--两位?
应用推荐