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

how do I do an integer divide?

Thread Next
From:
ToddAndMargo
Date:
April 13, 2018 10:06
Subject:
how do I do an integer divide?
Message ID:
d83da3c2-a5d6-9b95-46a8-dbc82af34322@zoho.com
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,
-T

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About