Skip to content

Commit

Permalink
typos math.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcofann authored Dec 26, 2024
1 parent ef2b208 commit 9d656d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/arbmath/math.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func BigToUintOrPanic(value *big.Int) uint64 {
return value.Uint64()
}

// UfracToBigFloat casts an rational to a big float
// UfracToBigFloat casts a rational to a big float
func UfracToBigFloat(numerator, denominator uint64) *big.Float {
float := new(big.Float)
float.Quo(UintToBigFloat(numerator), UintToBigFloat(denominator))
Expand Down Expand Up @@ -242,7 +242,7 @@ func BigMulByInt(multiplicand *big.Int, multiplier int64) *big.Int {
return new(big.Int).Mul(multiplicand, big.NewInt(multiplier))
}

// BigMulByUint multiply a huge by a unsigned integer
// BigMulByUint multiply a huge by an unsigned integer
func BigMulByUint(multiplicand *big.Int, multiplier uint64) *big.Int {
return new(big.Int).Mul(multiplicand, new(big.Int).SetUint64(multiplier))
}
Expand Down

0 comments on commit 9d656d7

Please sign in to comment.