NAME
File::Rsync::Mirror::Recentfile::FakeBigFloat - pseudo bigfloat support
SYNOPSIS
use File::Rsync::Mirror::Recentfile::FakeBigFloat qw(:all);
ONLY INTERNAL FUNCTIONS
These functions are not part of a public interface and can be changed and go away any time without prior notice.
DESCRIPTION
We treat strings that look like floating point numbers. If the native floating point support is good enough we use it. If it isn't we make sure no two unequal numbers are treated the same and vice versa. Only comparison operators are supported, no other math.
EXPORT
All functions are exported in the :all
tag.
_bigfloatcmp ( $l, $r )
Cmp function for floating point numbers that have a larger significand than can be handled by native perl floats.
_bigfloatge ( $l, $r )
Same for ge
_bigfloatgt ( $l, $r )
Same for gt
_bigfloatle ( $l, $r )
Same for lt
_bigfloatlt ( $l, $r )
Same for lt
_bigfloatmax ( $l, $r )
Same for max (of two arguments)
_bigfloatmin ( $l, $r )
Same for min (of two arguments)
$big = _increase_a_bit ( $l, $r )
$big = _increase_a_bit ( $n )
The first form calculates a string that is between the two numbers, closer to $l to prevent rounding effects towards $r. The second form calculates the second number itself based on nextup() in Data::Float.
COPYRIGHT & LICENSE
Copyright 2008, 2009 Andreas König.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.