Oryx::Value::Float - Values containing floating-point data
package CMS::LedgerEntry; use base qw( Oryx::Class ); our $schema = { attributes => [ { name => 'summary', type => 'String', }, { name => 'amount', type => 'Float', } ], }; $x = CMS::Picture->create({ summary => 'New PDA', amount => 342.17, });
This value stores floating-point data. It has an optional field called "precision" that can be used to set how many decimal places should be stored in the database.
This value type is checked to see that it is in fact a decimal number and is stored with the "Float" primitive type.
Oryx::Value
Richard Hundt <richard NO SPAM AT protea-systems.com>
This library is free software and may be used under the same terms as Perl itself.
To install Oryx, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Oryx
CPAN shell
perl -MCPAN -e shell install Oryx
For more information on module installation, please visit the detailed CPAN module installation guide.