DBIx::Class::InflateColumn::BigFloat - Auto-inflate your decimal columns into solid floats
version 0.01
package Event; use base 'DBIx::Class::Core'; __PACKAGE__->load_components(qw/InflateColumn::BigFloat/); __PACKAGE__->add_columns( cost => { data_type => 'decmial', size => [7,2] } );
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.
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.
Math::BigFloat, DBIx::Class, DBIx::Class::InflateColumn.
Christopher Mckay <cmckay@cpan.org>
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.
To install DBIx::Class::InflateColumn::BigFloat, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Class::InflateColumn::BigFloat
CPAN shell
perl -MCPAN -e shell install DBIx::Class::InflateColumn::BigFloat
For more information on module installation, please visit the detailed CPAN module installation guide.