Use toFixed method
Use toFixed method

replace manual rounding with toFixed method

online-go/online-go.com,online-go/online-go.com,online-go/online-go.com,online-go/online-go.com,online-go/online-go.com