Tony Byrne > Test-C2FIT-0.08 > Test::C2FIT::ScientificDoubleTypeAdapter

Download:
Test-C2FIT-0.08.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

NAME ^

Test::C2FIT::ScientificDoubleTypeAdapter - A type adapter capable of checking float numbers

SYNOPSIS ^

Typically, you instruct fit to use this TypeAdapter by following (where aColumn is the column heading):

        package MyColumnFixture
        use base 'Test::C2FIT::ColumnFixture';
        use strict;
        
        sub new {
            my $pkg = shift;
            return $pkg->SUPER::new( fieldColumnTypeMap => { 'aColumn' => 'Test::C2FIT::ScientificDoubleTypeAdapter' } );
        }

DESCRIPTION ^

Better support for equality checking of floats than abs($a - $b) < $threshold

SEE ALSO ^

Extensive and up-to-date documentation on FIT can be found at: http://fit.c2.com/

syntax highlighting: