whole number result from division

shaktak

New member
Joined
Apr 11, 2016
Messages
1
I need to divide a by b and I need the result to the a whole number.

e.g.
a=855
b=1.2


855/1.2=712.5
This does not result in a whole number.
'b' cannot change, I want to increase the value of 'a' until I get a whole number result.


Through just trial, I know that
(855+3)/1.2=715


So, 858/1.2=715 but what would be the formula to figure out that 858 was the next number up from 855 that when divided by 1.2 would result in a whole number?

Many thanks!
 
I need to divide a by b and I need the result to the a whole number.
So multiply a whole number by a decimal. Then flip it around and use that decimal as your value "b" and your whole-number factor as your value "a".

For instance:

. . . . .\(\displaystyle 1.3\, \times\, 855\, =\, 1,111.5\)

Then:

. . . . .\(\displaystyle 1,111.5\, \div\, 1.3\, =\, 855\)

Use your own numbers, of course. ;)
 
Top