Forums Register Login

Get Mod (remainder) in java

+Pie Number of slices to send: Send
This is a very simple question. But it does not work. I want to get remainder from a division.

a mod b did not take.

Please let me know what would be the expression to get a remainder from a division.

Thanks
Mei
+Pie Number of slices to send: Send
a % b
PI day is 3.14 (march 14th) and is also einstein's birthday. And this is merely a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 750 times.
Similar Threads
Anyone familiar with Linear Feedback Shiftback Register.
Another way to write this?
% operator
Calculating download time
Circular Linked List
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 08:10:17.