Next: Generator, Previous: FloatQ, Up: Base classes [Index]
I represent rational numbers in the form (p/q) where p and q are integers. The arithmetic operations *, +, -, /, on fractions, all return a reduced fraction.
• Fraction class-converting: | (class) | |
• Fraction class-instance creation: | (class) | |
• Fraction-accessing: | (instance) | |
• Fraction-arithmetic: | (instance) | |
• Fraction-coercing: | (instance) | |
• Fraction-coercion: | (instance) | |
• Fraction-comparing: | (instance) | |
• Fraction-converting: | (instance) | |
• Fraction-optimized cases: | (instance) | |
• Fraction-printing: | (instance) | |
• Fraction-testing: | (instance) |