package humanize

import (
	
)

// order of magnitude (to a max order)
func oomm(,  *big.Int,  int) (float64, int) {
	 := 0
	 := &big.Int{}
	for .Cmp() >= 0 {
		.DivMod(, , )
		++
		if  ==  &&  >= 0 {
			break
		}
	}
	return float64(.Int64()) + (float64(.Int64()) / float64(.Int64())), 
}

// total order of magnitude
// (same as above, but with no upper limit)
func oom(,  *big.Int) (float64, int) {
	 := 0
	 := &big.Int{}
	for .Cmp() >= 0 {
		.DivMod(, , )
		++
	}
	return float64(.Int64()) + (float64(.Int64()) / float64(.Int64())), 
}