All Questions
1
question
2
votes
1
answer
94
views
Divide an integer in the sum of two integers with percentage factor using ceil and floor
I have encoutered a problem in a software that I use for invoicing. I have a variable (quantity) integer A which I want to split in a sum of two integers using a percentage p where $A1 = p*A$ and $A2 =...