Rational

Rational (gb.gmp)

This class represents a rational number, i.e. a BigInt number divided by another BigInt number. It implements standard arithmetic and comparison operators (i.e. +, -, *, /, ^, Abs , =, <>, <, >, <=, >=), and provides automatic conversions with BigInt and native Gambas numerical datatypes.
This class is creatable .
Static methods
FromString Convert a string into a rational number.
Properties
Den Return or set the rational denominator.
Num Return or set the rational numerator.
Methods
ToString Convert the rational number to its string representation.

AltStyle によって変換されたページ (->オリジナル) /