Search notes:

Perl function: int

#
#   TODO: Compare with round
#
use warnings;
use strict;

use feature 'say';

say int ( 2.3);
# 2

say int ( 9.8);
# 9

say int (-4.4);
# -4

say int (-8.9);
# -8
Github repository about-perl, path: /functions/int.pl

See also

Perl functions

Index