mirror of https://github.com/miguelmota/cointop
Increase number of decimals shown when price < 1. #132
parent
f5adceea65
commit
758e8367f7
@ -0,0 +1,12 @@
|
||||
package humanize
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
// TestMonetary tests monetary formatting
|
||||
func TestMonetary(t *testing.T) {
|
||||
if Monetaryf(834142.3256, 2) != "834,142.3256" {
|
||||
t.FailNow()
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue