ebkStrings wurde in schtrings umbenannt und maaf für eigene Math-Funktionen wurde hinzugefügt
parent
d5589c8423
commit
57b52116b1
@ -1,6 +0,0 @@
|
||||
// ebkStrings project doc.go
|
||||
|
||||
/*
|
||||
ebkStrings document
|
||||
*/
|
||||
package ebkStrings
|
@ -0,0 +1,6 @@
|
||||
// maaf project doc.go
|
||||
|
||||
/*
|
||||
maaf document
|
||||
*/
|
||||
package maaf
|
@ -0,0 +1,9 @@
|
||||
// maaf project maaf.go
|
||||
package maaf
|
||||
|
||||
import "math"
|
||||
|
||||
func Round(number float64, digits int8) float64 {
|
||||
pow := math.Pow(10, float64(digits))
|
||||
return math.Floor(number*pow+.5) / pow
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
// schtrings project doc.go
|
||||
|
||||
/*
|
||||
schtrings document
|
||||
*/
|
||||
package schtrings
|
Loading…
Reference in New Issue