Added tests for extra large values
Test “E” scientific notation formatting
This commit is contained in:
@ -66,6 +66,7 @@ func CurrencyToString(num *big.Int) string {
|
||||
denom = "Ada"
|
||||
}
|
||||
|
||||
// TODO add comment clarifying expected behavior
|
||||
if len(fin.String()) > 5 {
|
||||
return fmt.Sprintf("%sE%d %s", fin.String()[0:5], len(fin.String())-5, denom)
|
||||
}
|
||||
|
Reference in New Issue
Block a user