mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-07 07:30:23 +03:00
Change bunt of products/divisions to be 1-based
This commit is contained in:
parent
b5386a582e
commit
1c46348b14
@ -474,7 +474,7 @@
|
||||
::
|
||||
++ div :: divide
|
||||
~/ %div
|
||||
|= [a=@ b=@]
|
||||
|= [a=_`@`1 b=_`@`1]
|
||||
^- @
|
||||
~| 'div'
|
||||
?< =(0 b)
|
||||
@ -545,14 +545,14 @@
|
||||
::
|
||||
++ mod :: remainder
|
||||
~/ %mod
|
||||
|= [a=@ b=@]
|
||||
|= [a=_`@`1 b=_`@`1]
|
||||
^- @
|
||||
?< =(0 b)
|
||||
(sub a (mul b (div a b)))
|
||||
::
|
||||
++ mul :: multiply
|
||||
~/ %mul
|
||||
|= [a=@ b=@]
|
||||
|= [a=_`@`1 b=_`@`1]
|
||||
^- @
|
||||
=+ c=0
|
||||
|-
|
||||
|
Loading…
Reference in New Issue
Block a user