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

NAME

DBIx::Class::InflateColumn::BigFloat - Auto-inflate your decimal columns into solid floats

VERSION

version 0.01

SYNOPSIS

  package Event;
  use base 'DBIx::Class::Core';

  __PACKAGE__->load_components(qw/InflateColumn::BigFloat/);
  __PACKAGE__->add_columns(
    cost => { data_type => 'decmial', size => [7,2] }
  );

DESCRIPTION

This module causes 'decimal' type columns in your database to automatically wrap their values with Math::BigFloat. This solves most errors that occur due to floating point arithmatic upon these values. Keep in mind that while this fixes the values sourced from the db, you must still clean any values from other sources (e.g. read from files) manually if you want to be confident that your calculations are accurate.

METHODS

register_column

Chains with the "register_column" in DBIx::Class::Row method, and sets up datetime columns appropriately. This would not normally be directly called by end users.

SEE ALSO

Math::BigFloat, DBIx::Class, DBIx::Class::InflateColumn.

AUTHOR

Christopher Mckay <cmckay@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Christopher Mckay.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.