![]() |
![]()
| ![]() |
![]()
NAMEOryx::Value::Float - Values containing floating-point data SYNOPSISpackage 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, }); DESCRIPTIONThis 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. SEE ALSOOryx::Value AUTHORRichard Hundt <richard NO SPAM AT protea-systems.com> COPYRIGHT AND LICENSEThis library is free software and may be used under the same terms as Perl itself.
|