File tree 1 file changed +24
-2
lines changed
1 file changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -120,25 +120,47 @@ template initBigInt(val: uint): BigInt
120
120
proc initBigInt(val: BigInt): BigInt
121
121
```
122
122
123
+ ## ** const** zero
124
+
125
+
126
+ ``` nim
127
+ zero = ([0'u], {})
128
+ ```
129
+
130
+ ## ** const** one
131
+
132
+
133
+ ``` nim
134
+ one = ([1'u], {})
135
+ ```
136
+
123
137
## ** proc** cmp
124
138
139
+ Returns:
140
+ * a value less than zero, if <tt class =" docutils literal " ><span class =" pre " >a < ; b</span ></tt >
141
+ * a value greater than zero, if <tt class =" docutils literal " ><span class =" pre " >a > b</span ></tt >
142
+ * zero, if <tt class =" docutils literal " ><span class =" pre " >a == b</span ></tt >
125
143
126
144
``` nim
127
145
proc cmp(a, b: BigInt): int64
128
146
```
129
147
130
148
## ** proc** cmp
131
149
150
+ Returns:
151
+ * a value less than zero, if <tt class =" docutils literal " ><span class =" pre " >a < ; b</span ></tt >
152
+ * a value greater than zero, if <tt class =" docutils literal " ><span class =" pre " >a > b</span ></tt >
153
+ * zero, if <tt class =" docutils literal " ><span class =" pre " >a == b</span ></tt >
132
154
133
155
``` nim
134
- proc cmp(a: int32 ; b: BigInt ): int64
156
+ proc cmp(a: BigInt ; b: int32 ): int64
135
157
```
136
158
137
159
## ** proc** cmp
138
160
139
161
140
162
``` nim
141
- proc cmp(a: BigInt ; b: int32 ): int64
163
+ proc cmp(a: int32 ; b: BigInt ): int64
142
164
```
143
165
144
166
## ** proc** ` < `
You can’t perform that action at this time.
0 commit comments