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

4 lines
33 B
Perl
Raw Normal View History

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