Jump to content

Float field: Difference between revisions

From EPrints Documentation
Moved description to top
No edit summary
 
Line 13: Line 13:
** [[Float field]]
** [[Float field]]


== Properties ==
== Additional Properties ==
No bespoke properties.
No additional properties beyond a [[Metadata#Properties|standard metadata field]].


== Required Phrases ==
== Required Phrases ==
No additional phrases.
No additional phrases beyond [[Metadata#Required_Phrases|standard metadata field phrases]].


== Database ==
== Database ==

Latest revision as of 09:48, 9 April 2023


Description[edit]

Stores a floating point number (may be negative). In 3.0 there is no way to search these values. They might as well be just strings, but they are stored as FLOAT in the database.

This field is used for the latitude and longitude built in fields in User Objects and EPrint Objects.

The usefulness of this field will be expanded in later versions of EPrints.

Inheritance[edit]

Additional Properties[edit]

No additional properties beyond a standard metadata field.

Required Phrases[edit]

No additional phrases beyond standard metadata field phrases.

Database[edit]

Float fields are stored in the database as

fieldname FLOAT

API[edit]

See API page.

Examples[edit]

Most basic example.

{
    name => 'impactfactor',
    type => 'float',
},

Limit the width of the input field.

{
   name => 'latitude',
   type => 'float', 
   input_cols => 15,
}