DevBits
Home
Atlas
Play
About
Sign up
Log in
All
Go
big.Rat.SetInt64()
Examples using...
big.Rat.SetInt64()
Recent
Examples
Using math/big (EConvergents) in Go
by GoDoc
Go
big.Rat.SetInt64
big.Rat
big.Rat.Add
big.Rat.Inv
fmt
This example demonstrates how to use big.Rat to compute the first 15 terms in the sequence of rational convergents for the constant e (base of natural logarithm).