The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Util::Medley::Number - utility methods for working with numbers

VERSION

version 0.043

SYNOPSIS

...

DESCRIPTION

...

METHODS

commify

Add commas to a number for readability.

usage:
  $string = $util->commify($val);

  $string = $util->commify(val => $val);
args:
val [Num]

The number value.

decommify

Remove commas from a numeric string.

usage:
  $num = $util->decommify($val);

  $num = $util->decommify(val => $val);
args:
val [Str]

The numeric string value.