HTML::Template::Plugin::Dot::Helpers::Number - Number formatting and comparison functions


HTML-Template-Plugin-Dot-Helpers documentation Contained in the HTML-Template-Plugin-Dot-Helpers distribution.

Index


Code Index:

NAME

Top

HTML::Template::Plugin::Dot::Helpers::Number - Number formatting and comparison functions

METHODS

Top

See Number::Format for formatting functions

equals
le, lt, ge, gt

SEE ALSO

Top

HTML::Template::Plugin::Dot::Helpers for detailed help, license, and contact information.


HTML-Template-Plugin-Dot-Helpers documentation Contained in the HTML-Template-Plugin-Dot-Helpers distribution.

package HTML::Template::Plugin::Dot::Helpers::Number;

use strict;
use warnings;
use base qw/Number::Format/;
our $VERSION = 0.01;

sub equals
{
	return $_[1] == $_[2];
}

sub le
{
	return $_[1] <= $_[2];
}

sub lt
{
	return $_[1] < $_[2];
}

sub ge
{
	return $_[1] >= $_[2];
}

sub gt
{
	return $_[1] > $_[2];
}

1;