programming-examples/perl/Datatype/Using int() to convert 1.000001 to an integer.pl

3 lines
31 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
$y = 1.00001;
print int($y);