python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Why the different results when using external modulus than built-in pow(x, y, mod) in Python 3.9
While watching John Hammond's YouTube video about "Modular Inverses in Python 3 (PicoCTF 2022 #03 basic-mod2)" I discovered the newer version of pow(x, y, mod) function in Python 3.9, which ...
Raspberry Pieman
Votes: 0
Answers: 1
modulo string additions interacting between print lines
Im printing 2 lines that both use \r and % to replace a either %d or %s in their own print lines. Problem is they seam to get crossed over with one another.
def pinging():
average_list = []
ma...
reptilian_facade
Votes: 0
Answers: 1
Why modulus is not working for float on ruby?
I am wondering that modulus/reminder(%) is not working properly.
As example:
a = 4.49
b = 449.0
when I do it b % a, it is not showing 0.0, it is showing 4.489999999999997
I want to know the root c...
HM Tanbir
Votes: 0
Answers: 2
How can I find all the valid divisors (AKA A%B == 0) of a number?
I am writing a method modded, which is defined as modded(X,Y,Z). X is a generated list composed of the numbers in a given list Z that Y % Z == 0.
An example would be for (X,8,[2,4,5,1]) to return X = ...
Eris Cacigieri
Votes: 0
Answers: 2