This website requires JavaScript.
Explore
Help
Sign In
Medzik
/
go-utils
mirror of
https://github.com/MedzikUser/go-utils.git
Watch
1
Star
0
Fork
You've already forked go-utils
0
Code
Issues
Projects
Releases
Wiki
Activity
31951b1561
go-utils
/
convert
/
round.go
10 lines
108 B
Go
Raw
Blame
History
package
convert
func
Round
(
val
float64
)
int
{
if
val
<
0
{
return
int
(
val
-
1.0
)
}
return
int
(
val
)
}
Reference in New Issue
View Git Blame
Copy Permalink