Commit Graph

23 Commits

Author SHA1 Message Date
Simon Warta
1c2f4344af Add {Uint32,Int53,Uint53,Uint64}.toBigInt 2022-06-29 10:09:34 +02:00
Simon Warta
ce7d3bf461 Add more tests 2022-06-27 10:31:19 +02:00
Simon Warta
9545245267 Fix empty input handling of fromUserInput 2022-06-27 10:31:14 +02:00
Tien Nguyen Khac
3175384a1f test: use exact string match for error 2022-06-25 23:18:41 +12:00
Tien Nguyen Khac
bd8c2b8c18 chore: update test & fix spelling 2022-06-25 23:17:06 +12:00
Tien Nguyen Khac
048169fd3f refactor: stricter check for non-negative integers 2022-06-25 23:13:09 +12:00
Tien Nguyen Khac
6f22e00488 Fix Decimal can be constructed with a negative atomics 2022-06-22 12:05:34 +12:00
Simon Warta
fe50198086 Add Decimal.floor/.ceil 2022-04-26 17:05:27 +02:00
Simon Warta
e379ccd859 Add Decimal.zero and Decimal.one 2022-04-12 11:56:40 +02:00
Simon Warta
eb63957b08 Pull out IntegerStatic<T> 2020-09-30 14:28:19 +02:00
Simon Warta
5d73e64b17 Document default endianess 2020-09-30 14:03:56 +02:00
Simon Warta
25b2f456ca Add fromString to static interface 2020-09-30 13:59:10 +02:00
Simon Warta
7dfd019ef2 Create Uint32.fromBytes and Uint64.fromBytes 2020-09-30 13:50:39 +02:00
Simon Warta
c7e828bb79 Merge branch '0.22' 2020-09-17 15:07:15 +02:00
Abel Fernández
0975afcb4a Add Decimal.minus() unit tests 2020-09-15 10:07:10 +02:00
Abel Fernández
46680298c8 Add Decimal.minus() implementation 2020-09-15 10:06:53 +02:00
willclarktech
47018d2b6f
math: Change Decimal.multiply to operate on Uint classes 2020-08-19 10:45:50 +01:00
willclarktech
b94825f806
math: Add Decimal.multiply method and tests 2020-08-19 10:13:52 +01:00
Simon Warta
19882e6849 Add integer check to Uint64.fromNumber 2020-07-25 15:00:39 +02:00
willclarktech
9ac1994cb6
Add static Decimal.compare method 2020-06-10 15:40:51 +01:00
willclarktech
0ae83b0657
Add tests for Decimal comparison methods 2020-06-10 15:21:11 +01:00
willclarktech
8fbb7d4bcc
Add comparison methods to Decimal 2020-06-10 15:21:11 +01:00
Simon Warta
3cfad7a541 Add @cosmjs/encoding and @cosmjs/math 2020-06-09 17:46:03 +02:00