edu.vub.at.objects
Interface Fraction


 Fraction

ATFraction is the public interface to a native AmbientTalk fraction (a floating point value).

Author:
tvc

Method Summary
 Fraction abs()
          Returns the absolute value of a fraction.
 Fraction dec()
          Returns the fraction minus 1.
 Fraction inc()
          Returns the fraction plus 1.
 
Methods inherited from interface edu.vub.at.objects.Numeric
/, =, >=, >, <=>, <=, <, -, !=, +, *, addFraction, addNumber, ceiling, cos, divideFraction, divideNumber, expt, floor, gequalsFraction, gequalsNumber, log, round, sin, sqrt, subtractFraction, subtractNumber, tan, timesFraction, timesNumber, toText
 
Methods inherited from interface edu.vub.at.objects.AbstractGrammar
freeVariables
 
Methods inherited from interface edu.vub.at.objects.Object
super
 

Method Detail

inc

Fraction inc()
Returns the fraction plus 1.

Returns:
an ATFraction resulting of adding 1 to the receiver.

dec

Fraction dec()
Returns the fraction minus 1.

Returns:
an ATFraction resulting of subtracting 1 to the receiver.

abs

Fraction abs()
Returns the absolute value of a fraction.

More specifically:

Returns:
the absolute value of the receiver.