We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbcfb5f commit d8e9586Copy full SHA for d8e9586
src.ts/utils/fixednumber.ts
@@ -430,7 +430,7 @@ export class FixedNumber {
430
* Returns a comparison result between %%this%% and %%other%%.
431
*
432
* This is suitable for use in sorting, where ``-1`` implies %%this%%
433
- * is smaller, ``1`` implies %%other%% is larger and ``0`` implies
+ * is smaller, ``1`` implies %%this%% is larger and ``0`` implies
434
* both are equal.
435
*/
436
cmp(other: FixedNumber): number {
@@ -446,7 +446,7 @@ export class FixedNumber {
446
447
// Comnpare
448
if (a < b) { return -1; }
449
- if (a > b) { return -1; }
+ if (a > b) { return 1; }
450
return 0;
451
}
452
0 commit comments