取整int
四舍五入round
向上取整POSIX::ceil
向下取整就是int或者POSIX::floor
其中ceil和floor,要使用库POSIX,在perl源代码里加入
#!/usr/bin/perl
use strict;
use warnings;
use POSIX;
---------------------
作者:亓磊
来源:CSDN
原文:https://blog.csdn.net/u011729865/article/details/52669460
版权声明:本文为博主原创文章,转载请附上博文链接!
网友评论