Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

Float

Summary

Validates and stores a decimal value.

Properties

NameInternal nameSearchableInformation collector
Float ezfloat No. No.

Description

This datatype makes it possible to validate, store and retrieve a single decimal value. It is capable of handling both positive and negative numbers ranging from -3.402823466E+38 to 3.402823466E+38. Please note that these numbers may vary depending on the platform and the database that is used. The following screenshot shows the class edit interface for this datatype.

Class edit interface for the "Float" datatype.

Class edit interface for the "Float" datatype.

Default value

The "Default value" parameter makes it possible to set a default decimal value. When the parameter is used and a new object is created, the contents of the attribute using this datatype will be preset to the given value. In the example above, the "Temperature" attribute of new objects will be set to 24.13.

Min integer value

The "Min float value" parameter makes it possible to set the lowest value that the input interface will allow. The default value of this parameter is empty, which means that the system will allow the lowest possible value (-3.402823466E+38). In the example above, the parameter is set to "-40.00". This means that the input interface will not allow the storage of numbers with values less than -40.00.

Max float value

The "Max float value" parameter makes it possible to set the highest value that the input interface will allow. The default value of this parameter is empty, which means that the system will allow the highest possible value (3.402823466E+38). In the example above, the parameter is set to "120.00". This means that the input interface will not allow the storage of numbers with values as high as 120.00.

Object attribute edit interface

The following screenshot shows the object attribute edit interface for this datatype.

Object attribute edit interface for the "Float" datatype.

Object attribute edit interface for the "Float" datatype.

Raw output

The ".content" of an ezcontentobjectattribute object using this datatype returns a string containing the actual decimal value.

Balazs Halasy (21/02/2005 2:37 pm)

Balazs Halasy (29/04/2005 11:13 am)


Comments

There are no comments.