aboutsummaryrefslogtreecommitdiffstats
path: root/mobile/big.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-03-23 16:22:56 +0800
committerGitHub <noreply@github.com>2017-03-23 16:22:56 +0800
commit3fa0fa713bc1508835bdecd7dea78ff09803e327 (patch)
tree6a5d4a7dcfd72489bd4f7df70f5188a636947c24 /mobile/big.go
parent525116dbff916825463931361f75e75e955c12e2 (diff)
parentf1534f5797664856218c8347366488f37f1e7924 (diff)
downloaddexon-3fa0fa713bc1508835bdecd7dea78ff09803e327.tar
dexon-3fa0fa713bc1508835bdecd7dea78ff09803e327.tar.gz
dexon-3fa0fa713bc1508835bdecd7dea78ff09803e327.tar.bz2
dexon-3fa0fa713bc1508835bdecd7dea78ff09803e327.tar.lz
dexon-3fa0fa713bc1508835bdecd7dea78ff09803e327.tar.xz
dexon-3fa0fa713bc1508835bdecd7dea78ff09803e327.tar.zst
dexon-3fa0fa713bc1508835bdecd7dea78ff09803e327.zip
Merge pull request #3809 from fjl/all-use-normal-context
all: import "context" instead of "golang.org/x/net/context"
Diffstat (limited to 'mobile/big.go')
-rw-r--r--mobile/big.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/mobile/big.go b/mobile/big.go
index 9a55836c1..525717caa 100644
--- a/mobile/big.go
+++ b/mobile/big.go
@@ -93,3 +93,8 @@ func (bi *BigInts) Set(index int, bigint *BigInt) error {
bi.bigints[index] = bigint.bigint
return nil
}
+
+// GetString returns the value of x as a formatted string in some number base.
+func (bi *BigInt) GetString(base int) string {
+ return bi.bigint.Text(base)
+}