I want to take 2 digits after float like below example:(我想在浮点数后取2位数字,例如以下示例:)
function cut() {
var num1=8.844
// should be return 8.84
var num2=8.847
// should be return 8.84
}
ask by Chanchhunneng chrea translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…