Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: /home/cch/www/pear/Math/Fraction.php
PEAR Repository -

Math_Fraction

Math_Fraction

 

private class Math_Fraction

 

Public Method Summary

void

Math_Fraction(int $zaehler, [ integer $nenner ])

Constructor.
void

add(boolean $fraction, boolean $overwrite_with_result)

Add another fraction to this one.
void

sub(boolean $fraction, boolean $overwrite_with_result)

Subtract another fraction from this one.
void

mul(boolean $fraction, boolean $overwrite_with_result)

Multiply another fraction with this one.
void

div(boolean $fraction, boolean $overwrite_with_result)

Divide this fraction by another one.
void

normalize()

Normalize this fraction.
void

dump()

Dump this fraction.
string

get()

Get string representation of this fraction.
void

_check_fraction( $fraction)

Check, if a varaible holds a Math_Fraction object.
void

_return(boolean $result, $overwrite_with_result)

Handle the return or storage of a result from add, sub, mul or div.

Public Field Summary

unknown

$zaehler

zaehler of the fraction
unknown

$nenner

nenner of the fraction

Public Method Details

Math_Fraction

public void Math_Fraction( int $zaehler, [ integer $nenner ] )

  Constructor.

Parameter
int $zaehler
zaehler
integer $nenner = >>1<<
nenner
Returns void


add

public void add( boolean $fraction, boolean $overwrite_with_result )

  Add another fraction to this one.

Parameter
boolean $fraction
overwrite_with_result
boolean $overwrite_with_result
Returns void

See Also s::s, m::m, d::d

sub

public void sub( boolean $fraction, boolean $overwrite_with_result )

  Subtract another fraction from this one.

Parameter
boolean $fraction
overwrite_with_result
boolean $overwrite_with_result
Returns void

See Also a::a, m::m, d::d

mul

public void mul( boolean $fraction, boolean $overwrite_with_result )

  Multiply another fraction with this one.

Parameter
boolean $fraction
overwrite_with_result
boolean $overwrite_with_result
Returns void

See Also a::a, s::s, d::d

div

public void div( boolean $fraction, boolean $overwrite_with_result )

  Divide this fraction by another one.

Parameter
boolean $fraction
overwrite_with_result
boolean $overwrite_with_result
Returns void

See Also a::a, s::s, m::m

normalize

public void normalize( )

  Normalize this fraction.

Returns void


dump

public void dump( )

  Dump this fraction.

Returns void


get

public string get( )

  Get string representation of this fraction.

Returns string

representation of fraction


_check_fraction

public void _check_fraction( $fraction )

  Check, if a varaible holds a Math_Fraction object.

Parameter
$fraction
Returns void


_return

public void _return( boolean $result, $overwrite_with_result )

  Handle the return or storage of a result from add, sub, mul or div.

Parameter
boolean $result
overwrite_with_result
$overwrite_with_result
Returns void


Public Field Details

$zaehler

public unknown $zaehler

>>unknown<<


$nenner

public unknown $nenner

>>unknown<<



Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta