develooper Front page | perl.perl6.users | Postings from April 2018

how do I do an integer divide?

Thread Next
April 13, 2018 10:06
how do I do an integer divide?
Message ID:
Hi All,

How do I do and integer divide?

By that I mean I want only the whole number and
not the decimal point or the fraction.

21 DIV 4 = 5   (not 5.25)
21 %   4 = 1   (remainder = 1)

Many thanks,

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About