text
|
|
Access
|
read-write
|
Returns
|
String
|
type
|
|
Access
|
read-write
|
Returns
|
int
|
value
|
|
Access
|
read-write
|
Returns
|
float
|
fLengthlength
|
|
Parameters
|
Stringlength
The expression used to create the length.
If this value is a length object, a copy of the length object is returned.
If this value is a number, the new fLength object's valueOf() method will return that number. That is, passing the number returned by valueOf() to this constructor produces an object whose valueOf() method returns the same number. This is used for arithmetic, for example when adding or subtracting length objects.
Otherwise, this value is converted into a string and parsed as per the usual rules by APP. In particular, if the string does not specify a unit, the default unit of length is used (usually millimeters).
|
Returns
|
fLength. The newly created fLength object.
|
makeAbsolute
|
|
Parameters
|
None
|
Returns
|
fLength. An fLength object that is guaranteed to be absolute.
|
readResolveobj
|
|
Parameters
|
Objectobj
The serialized representation.
|
Returns
|
fLength. The object corresponding to the serialized representation.
|
toString
|
|
Parameters
|
None
|
Returns
|
String. A string representation of this fLength object.
|
toUnitunit
|
|
Parameters
|
fUnitunit
The unit to convert the length into.
|
Returns
|
String. A string representation of this fLength object.
|
valueOfunit
|
|
Parameters
|
fUnitunit
The unit to convert the length into. If this argument is invalid or unspecified, the value will be returned in a unit that is compatible with the fLength() constructor.
|
Returns
|
float. The numeric value of this fLength object for use in arithmetic operations in the desired unit, if specified.
|