Discover Packages
github.com/packtpublishing/go-cookbook
Chapter03
math
package
Version:
v0.0.0-...-6c64ebf
Opens a new window with list of versions in this module.
Published: Jan 30, 2023
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Examples demonstrates some of the functions
in the math package
Fib prints the nth digit of the fibonacci sequence
it will return 1 for anything < 0 as well...
it's calculated recursively and use big.Int since
int64 will quickly overflow
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.