package
0.0.0-20210318024954-d9e4b8ca2e42
Repository: https://github.com/pangpanglabs/goutils.git
Documentation: pkg.go.dev
# README
goutils/number
Getting Started
main.go:
package main
import (
"fmt"
"github.com/pangpanglabs/goutils/number"
)
func main() {
s := number.Setting{
RoundDigit: 3,
RoundStrategy: "ceil",
}
r := number.ToFixed(1/3.0, &s)
fmt.Println("The result of 1/3.0 with 3 decimal places: ", r)
}
# Constants
No description provided by the author
No description provided by the author