Difference between revisions of "PrF UG inst entry field float"
Line 23: | Line 23: | ||
! Description | ! Description | ||
|- | |- | ||
− | | 1234.56 | + | | |
− | | Standard decimal notation. | + | 1234.56 |
+ | | | ||
+ | Standard decimal notation. | ||
|- | |- | ||
− | | 1.23456E3 or 1.2345e3 | + | | |
− | | Exponential notation; | + | 1.23456E3 or 1.2345e3 |
+ | | | ||
+ | Exponential notation; | ||
the example is shorthand for 1.23456 · 10<sup>3</sup>. | the example is shorthand for 1.23456 · 10<sup>3</sup>. | ||
Represents 1234.56 | Represents 1234.56 | ||
|- | |- | ||
− | | -1234.56 | + | | |
− | | Negative number. | + | -1234.56 |
+ | | | ||
+ | Negative number. | ||
|- | |- | ||
− | | 1.23456E-3 or 1.2345e-3 | + | | |
− | | Exponential notation with a negative exponent, | + | 1.23456E-3 or 1.2345e-3 |
+ | | | ||
+ | Exponential notation with a negative exponent, | ||
shorthand for 1.23456 · 10<sup>-3</sup>. | shorthand for 1.23456 · 10<sup>-3</sup>. | ||
Represents 0.00123456. | Represents 0.00123456. |
Revision as of 23:51, October 15, 2008
The Float Fields
When an instance is created for a class with a slot of Value Type Float, the entry field corresponding to the slot is a Float entry field, and takes numbers as values. These numbers may include a decimal point. Values of type Float are stored on your system as floating-point values, and are only as accurate as your system allows.
Entering Floating-Point Numbers
When entering a Float value for an instance, you can use decimal point or exponential representation. You can enter positive and negative values. For example:
Representation | Description |
---|---|
1234.56 |
Standard decimal notation. |
1.23456E3 or 1.2345e3 |
Exponential notation; the example is shorthand for 1.23456 · 103. Represents 1234.56 |
-1234.56 |
Negative number. |
1.23456E-3 or 1.2345e-3 |
Exponential notation with a negative exponent, shorthand for 1.23456 · 10-3. Represents 0.00123456. |
For convenience in typing, when using exponential notation, you can enter either e or E.
Single Cardinality
The entry field corresponding to a slot of value type Float with Cardinality Single can contain a single floating-point number. It appears as an entry bar:
To set or edit the value, simply click in the entry field and make your edits.
To clear the slot, delete the value in the entry bar.
Invalid entry in a Float field
If you enter text or other invalid information (e.g., values less than the minimum or greater than the maximum) in a Float entry field, the entered information will be displayed in red and will not saved by the system. The previous value (if any) will be used, instead.
Multiple Cardinality
An instance with a Float/Multiple slot shows a display list with three buttons. This field contains a list of floating-point values. If the at most value is set in the Cardinality field for the slot, there is a limit on the number of values you can enter.
To edit a pre-existing value for a Float/Multiple slot:
Select the value you want to edit.
Click the View Value button. An Edit Float Value dialog box will be displayed.
Edit the number directly in the dialog box.
Click OK.
To add a value to a Float/Multiple slot:
Click the Create Value button. A Create Float Value dialog box will be displayed.
Enter the number you want in the entry bar. The number may include a decimal point.
Click OK.
To remove a value from a Float/Multiple slot:
Select the value(s) you want to remove. You can select multiple values by holding down the Ctrl (Cmd) key.
Click the Remove Value button. The selected values will be removed.