https://github.com/doloopwhile/go-fastlog
Simple and fast log10 for integer
https://github.com/doloopwhile/go-fastlog
Last synced: 3 months ago
JSON representation
Simple and fast log10 for integer
- Host: GitHub
- URL: https://github.com/doloopwhile/go-fastlog
- Owner: doloopwhile
- License: mit
- Created: 2014-08-07T04:06:18.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-08-08T02:27:44.000Z (over 11 years ago)
- Last Synced: 2024-06-21T13:13:49.598Z (over 1 year ago)
- Language: Go
- Size: 148 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
go-fastlog
==========
Simple and fast Log10 implementation for uint64.
It might be useful to calculate width of number as decimal.
# func Log10
```go
func Log10(n uint64) int
```
Log returns the decimal logarithm of n.
Log10(0) = 0 as a special case.
Log10 must very faster than math.Log10 in the standard library.