Solución
ED@edermendoza050209_8d785a66
·hace 3dTypeScriptsolution.tsTypeScript
package main
import "math"
func roundNumber(num float64, decimals int) float64 {
pontencia := math.Pow(10, float64(decimals))
return math.Round(num*pontencia) / pontencia
}0respuestas