++ed by:
JEFFOBER SBAKKER ESAYM

3 PAUSE users

Steven Bakker

NAME

Term::CLI::Argument::Number::Float - class for floating point arguments in Term::CLI

VERSION

version 0.04007

SYNOPSIS

 use Term::CLI::Argument::Number::Float;

 my $arg = Term::CLI::Argument::Number::Int->new(
                name => 'index',
                min => -1.0,
                max => +1.0,
                inclusive => 1
           );

DESCRIPTION

Class for floating point arguments in Term::CLI(3p). Extends Term::CLI::Argument::Number(3p).

Inherits from:

Term::CLI::Argument::Number(3p).

Consumes:

None.

CONSTRUCTORS

See Term::CLI::Argument::Number(3p).

ACCESSORS

See Term::CLI::Argument::Number(3p).

METHODS

Inherited from Term::CLI::Argument::Number(3p).

Additionally:

coerce_value ( VALUE )

Overloaded to check for a valid numerical value (using Scalar::Util's looks_like_number).

SEE ALSO

Scalar::Util(3p), Term::CLI::Argument::Number::Int(3p), Term::CLI::Argument::Number(3p), Term::CLI::Argument(3p), Term::CLI(3p).

AUTHOR

Steven Bakker <sbakker@cpan.org>, 2018.

COPYRIGHT AND LICENSE

Copyright (c) 2018 Steven Bakker

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See "perldoc perlartistic."

This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.