good morning!!!!

Skip to content
Snippets Groups Projects
Commit bbfe0b8d authored by Alejandro Isaza's avatar Alejandro Isaza Committed by Felix Lange
Browse files

mobile: Add GetSign to BigInt (#15558)

parent 46e55839
No related branches found
No related tags found
No related merge requests found
......@@ -62,6 +62,16 @@ func (bi *BigInt) SetInt64(x int64) {
bi.bigint.SetInt64(x)
}
// Sign returns:
//
// -1 if x < 0
// 0 if x == 0
// +1 if x > 0
//
func (bi *BigInt) Sign() int {
return bi.bigint.Sign()
}
// SetString sets the big int to x.
//
// The string prefix determines the actual conversion base. A prefix of "0x" or
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment