1. Perl
  2. Module
  3. here

POSIX - Functions defined in POSIX

The POSIX module allows you to use the functions defined in POSIX.

# Use of POSIX modules
use POSIX qw/ceil floor/;

Math - related functions

Use ceil to round up the decimal point.

# Round up the decimal point
$result = ceil $num;

Use floor to round down the decimal point.

# Decimal point devaluation
$result = floor $num;

To see a list of POSIX functions

Perl has a large number of POSIX functions defined. See perldoc's POSIX documentation for a list of POSIX functions.

Related Informatrion