Fraction class

Implementers

Constructors

Fraction(BigInt numerator, {BigInt? denominator})

Properties

denominator BigInt
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
numerator BigInt
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(Fraction otherParsed) Fraction
asFraction() Fraction
Helper method for converting any super class back to a fraction
divide(Fraction otherParsed) Fraction
equalTo(Fraction otherParsed) bool
greaterThan(Fraction otherParsed) bool
invert() Fraction
lessThan(Fraction otherParsed) bool
multiply(Fraction otherParsed) Fraction
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
quotient() BigInt
remainder() Fraction
subtract(Fraction otherParsed) Fraction
toFixedNative(int decimalPlaces, {NumberFormat? format, RoundingMode? rounding}) String
toSignificantNative(int significantDigits, {NumberFormat? format, RoundingMode? rounding}) String
toString() String
A string representation of this object.
inherited
tryParseFraction(BigInt fractionish) Fraction

Operators

operator ==(Object other) bool
The equality operator.
override