Skip to content

Instantly share code, notes, and snippets.

Avatar

Yoander Valdés Rodríguez yoander

View GitHub Profile
View round.go
package main
import (
"log"
"math"
)
func Round(val float64, roundOn float64, places int ) (newVal float64) {
var round float64
pow := math.Pow(10, float64(places))