ebkStrings wurde in schtrings umbenannt und maaf für eigene Math-Funktionen wurde hinzugefügt
This commit is contained in:
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
|
|
@ -1,5 +1,5 @@
|
|||
// ebkStrings project strings.go
|
||||
package ebkStrings
|
||||
// schtrings project schtrings.go
|
||||
package schtrings
|
||||
|
||||
import "bytes"
|
||||
|
||||
|
@ -26,15 +26,15 @@ func (f *Concatablestring) Join(args ...string) string {
|
|||
package main
|
||||
|
||||
import (
|
||||
"ebkTools/ebkStrings"
|
||||
. "ebkTools/schtrings"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Println(ebkStrings.Concatstring("a", "b", "c"))
|
||||
fmt.Println(Concatstring("a", "b", "c"))
|
||||
|
||||
teststring := (ebkStrings.Concatablestring)("Anfangswert ")
|
||||
teststring := (Concatablestring)("Anfangswert ")
|
||||
|
||||
fmt.Println(teststring.Join("gefolgt ", "von ", "meinem ", "Text"))
|
||||
fmt.Println(Join("gefolgt ", "von ", "meinem ", "Text"))
|
||||
}
|
||||
*/
|
Loading…
Reference in New Issue