I hereby claim:
- I am jbsmith7741 on github.
- I am jbsmith7741 (https://keybase.io/jbsmith7741) on keybase.
- I have a public key ASCY4keAUL6pZYnLAXWp1IX4WJ0U8ycQZBvIsIQZ-hPX8go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
func trunc(val float64, digit int) float64 { | |
pow := math.Pow(10.0, float64(digit)) | |
return math.Floor(pow*val) / pow | |
} |