Jump to content

Float field

From EPrints Documentation
Revision as of 09:48, 9 April 2023 by Drn@ecs.soton.ac.uk (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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,
}