GoRayTracer/model/helper.go
2022-01-23 12:07:31 +01:00

7 lines
172 B
Go
Executable file

package model
import "math"
func round(valued float64, floatingPoints int) float64 {
return math.Round(valued*math.Pow10(floatingPoints)) / math.Pow10(floatingPoints)
}