samber / lo

💥 A Lodash-style Go library based on Go 1.18+ Generics (map, filter, contains, find...)
https://pkg.go.dev/github.com/samber/lo
MIT License
18.02k stars 830 forks source link

add Round: returns the float32/float64 of specified precision #529

Open freeeverett opened 2 months ago

freeeverett commented 2 months ago

I'm sorry, I have modified the description of Round to better fit the purpose of the function

freeeverett commented 2 months ago

And, I added a Truncate function

samber commented 2 months ago

why did you close the pr ?

misclick ?

Can you please add these helpers to the readme?

freeeverett commented 1 month ago

I encountered a tricky problem and didn't have enough time to solve it, so I closed it. However, now I have plenty of time to start solving the problem

freeeverett commented 1 month ago

There are still some issues with these submissions, I will resolve them as soon as possible