Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: c:/www/apache/doc2//pear/Math/Fraction.php
PEAR 2000/12/03 -

Math_Fraction

Math_Fraction

Warning: documentation is missing.

 

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

int

$zaehler

zaehler of the fraction
int

$nenner

nenner of the fraction

Public Method Details

Math_Fraction

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

  Constructor.

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


add

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

  Add another fraction to this one.

Parameter
boolean $fraction
boolean $overwrite_with_result
Warning: documentation is missing.
Returns void


sub

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

  Subtract another fraction from this one.

Parameter
boolean $fraction
boolean $overwrite_with_result
Warning: documentation is missing.
Returns void


mul

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

  Multiply another fraction with this one.

Parameter
boolean $fraction
boolean $overwrite_with_result
Warning: documentation is missing.
Returns void


div

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

  Divide this fraction by another one.

Parameter
boolean $fraction
boolean $overwrite_with_result
Warning: documentation is missing.
Returns void


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
Warning: documentation is missing.
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
Warning: documentation is missing.
Returns void


Public Field Details

$zaehler

public int $zaehler

>><<

zaehler of the fraction


$nenner

public int $nenner

>><<

nenner of the fraction



Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta