Class Double

Description

A simple Float data type.

Located in /harmoni/core/Primitives/Numbers/Double.class.php (line 25)

SObject
   |
   --Magnitude
      |
      --Number
         |
         --Float
            |
            --Double
Direct descendents
Class Description
StorableFloat This is the StorablePrimitive equivalent of Float.
Method Summary
object Double fromString (string $string, [mixed $class = 'Double'])
object Double withValue (mixed $value, [optional $class = 'Double'])
object Double zero ([optional $class = 'Double'])
void _setValue (mixed $value)
Methods
fromString (line 55)

Answer a new object with the value specified

  • since: 3/14/06
  • access: public
object Double fromString (string $string, [mixed $class = 'Double'])
  • string $string: a string representation of the object

Redefinition of:
Float::fromString()
Answer a new object with the value specified
withValue (line 43)

Answer a new object with the value specified

  • since: 7/14/05
  • access: public
object Double withValue (mixed $value, [optional $class = 'Double'])
  • mixed $value
  • optional $class: string $class The class to instantiate. Do NOT use outside of this package.

Redefinition of:
Float::withValue()
Answer a new object with the value specified
zero (line 68)

Answer a new object with the value zero

  • since: 7/14/05
  • access: public
object Double zero ([optional $class = 'Double'])
  • optional $class: string $class The class to instantiate. Do NOT use outside of this package.

Redefinition of:
Float::zero()
Answer a new object with the value zero
_setValue (line 84)

Set the internal value to a PHP primitive.

  • since: 7/14/05
  • access: private
void _setValue (mixed $value)
  • mixed $value

Redefinition of:
Float::_setValue()
Set the internal value to a PHP primitive.

Redefined in descendants as:

Inherited Methods

Inherited From Float

Float::dividedBy()
Float::fromString()
Float::multipliedBy()
Float::plus()
Float::withValue()
Float::zero()
Float::_setValue()

Inherited From Number

Number::abs()
Number::asDouble()
Number::asFloat()
Number::asInteger()
Number::asNumber()
Number::ceiling()
Number::dividedBy()
Number::floor()
Number::fromString()
Number::isEqualTo()
Number::isLessThan()
Number::minus()
Number::modIntegerQuotient()
Number::modulo()
Number::multipliedBy()
Number::negated()
Number::plus()
Number::printableString()
Number::reciprical()
Number::remainder()
Number::remIntegerQuotient()
Number::truncated()
Number::value()
Number::withValue()
Number::zero()
Number::_setValue()

Inherited From Magnitude

Magnitude::isBetween()
Magnitude::isEqualTo()
Magnitude::isGreaterThan()
Magnitude::isGreaterThanOrEqualTo()
Magnitude::isLessThan()
Magnitude::isLessThanOrEqualTo()
Magnitude::max()
Magnitude::min()

Inherited From SObject

SObject::asA()
SObject::asString()
SObject::copy()
SObject::copySameFrom()
SObject::copyTwoLevel()
SObject::deepCopy()
SObject::isEqual()
SObject::isEqualTo()
SObject::isNotEqualTo()
SObject::isNotReferenceTo()
SObject::isReferenceTo()
SObject::newFrom()
SObject::postCopy()
SObject::printableString()
SObject::shallowCopy()
SObject::_deepCopyArray()

Documentation generated on Wed, 19 Sep 2007 10:22:49 -0400 by phpDocumentor 1.3.0RC3