Public Method Details |
Math_Fraction |
public void Math_Fraction( int $zaehler, [ integer $nenner ] )
|
|
Constructor.
|
Parameter |
|
|
|
|
Returns |
void |
|
add |
public void add( boolean $fraction, boolean $overwrite_with_result )
|
|
Add another fraction to this one.
|
Parameter |
|
|
|
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 |
$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 |
$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 |
$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 |
|
|
|
|
$overwrite_with_result |
|
|
Warning: documentation is missing. |
|
Returns |
void |
|