Skip to content

Commit 9cac225

Browse files
✨ feat(integer): Add divmod functions.
1 parent 45d30fd commit 9cac225

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/integer.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ export function imod ( first , second ) {
6868
return first.imod(second) ;
6969
}
7070

71+
export function divmod ( first , second ) {
72+
return first.divmod(second) ;
73+
}
74+
75+
export function idivmod ( first , second ) {
76+
return first.idivmod(second) ;
77+
}
78+
7179
export function addn ( first , second ) {
7280
return first.addn(second) ;
7381
}
@@ -115,3 +123,11 @@ export function modn ( first , second ) {
115123
export function imodn ( first , second ) {
116124
return first.imodn(second) ;
117125
}
126+
127+
export function divmodn ( first , second ) {
128+
return first.divmodn(second) ;
129+
}
130+
131+
export function idivmodn ( first , second ) {
132+
return first.idivmodn(second) ;
133+
}

0 commit comments

Comments
 (0)