0

Say for example, that I want the highest multiple of 36 below 100. Is there a function that allows me to generate this with two arbitrary numbers?

1 Answers1

2

If $x$ the number whose multiple you're trying to find and $y$ is the upper bound what you're looking for is $$x{\left\lfloor{ y\over x}\right\rfloor}$$

where $\lfloor\cdot\rfloor$ is the floor function.