ebkStrings wurde in schtrings umbenannt und maaf für eigene Math-Funktionen wurde hinzugefügt

This commit is contained in:
Klaus Wendel, archium GmbH 2017-03-31 20:38:41 +02:00
parent d5589c8423
commit 57b52116b1
5 changed files with 27 additions and 12 deletions

View File

@ -1,6 +0,0 @@
// ebkStrings project doc.go
/*
ebkStrings document
*/
package ebkStrings

6
maaf/doc.go Normal file
View File

@ -0,0 +1,6 @@
// maaf project doc.go
/*
maaf document
*/
package maaf

9
maaf/maaf.go Normal file
View File

@ -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
}

6
schtrings/doc.go Normal file
View File

@ -0,0 +1,6 @@
// schtrings project doc.go
/*
schtrings document
*/
package schtrings

View File

@ -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"))
}
*/