RationalConstants class final

Provides useful constants for the Rational type

Constructors

RationalConstants()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

billion → Rational
Represents one billion (1,000,000,000)
final
billionth → Rational
Represents one billionth (1/1,000,000,000)
final
dozen → Rational
Represents one dozen (12)
final
eight → Rational
Represents eight (8)
final
eighth → Rational
Represents one eighth (1/8)
final
eleven → Rational
Represents eleven (11)
final
fifth → Rational
Represents one fifth (1/5)
final
fiftyPercent → Rational
Represents 50% as a ratio (1/2 or 0.5) Same as half but named for percentage context
final
five → Rational
Represents five (5)
final
fivePercent → Rational
Represents 5% as a ratio (1/20 or 0.05) Useful for percentage calculations
final
four → Rational
Represents four (4)
final
fourFifths → Rational
Represents four fifths (4/5)
final
half → Rational
Represents one half (1/2)
final
hourFractionOfDay → Rational
Represents one hour as a fraction of a day (1/24).
final
hundred → Rational
Represents one hundred (100)
final
hundredth → Rational
Represents one hundredth (1/100)
final
hundredThousandth → Rational
Represents one hundred-thousandth (1/100,000)
final
million → Rational
Represents one million (1,000,000)
final
millionth → Rational
Represents one millionth (1/1,000,000)
final
minuteFractionOfDay → Rational
Represents one minute as a fraction of a day (1/1440).
final
minuteFractionOfHour → Rational
Represents one minute as a fraction of an hour (1/60).
final
nine → Rational
Represents nine (9)
final
ninth → Rational
Represents one ninth (1/9)
final
onePercent → Rational
Represents 1% as a ratio (1/100 or 0.01) Useful for percentage calculations
final
quarter → Rational
Represents one quarter (1/4)
final
secondFractionOfDay → Rational
Represents one second as a fraction of a day (1/86400).
final
secondFractionOfHour → Rational
Represents one second as a fraction of an hour (1/3600)
final
seven → Rational
Represents seven (7)
final
seventh → Rational
Represents one seventh (1/7)
final
six → Rational
Represents six (6)
final
sixteenth → Rational
Represents one sixteenth (1/16)
final
sixth → Rational
Represents one sixth (1/6)
final
ten → Rational
Represents ten (10)
final
tenPercent → Rational
Represents 10% as a ratio (1/10 or 0.1) Useful for percentage calculations
final
tenth → Rational
Represents one tenth (1/10)
final
tenThousandth → Rational
Represents one ten-thousandth (1/10,000)
final
third → Rational
Represents one third (1/3)
final
thousand → Rational
Represents one thousand (1,000)
final
thousandth → Rational
Represents one thousandth (1/1,000)
final
three → Rational
Represents three (3)
final
threeFifths → Rational
Represents three fifths (3/5)
final
threeQuarters → Rational
Represents three quarters (3/4)
final
trillion → Rational
Represents one trillion (1,000,000,000,000)
final
trillionth → Rational
Represents one trillionth (1/1,000,000,000,000)
final
twelfth → Rational
Represents one twelfth (1/12)
final
twelve → Rational
Represents twelve (12)
final
twentieth → Rational
Represents one twentieth (1/20)
final
twentyFifth → Rational
Represents one twenty-fifth (1/25)
final
twentyFivePercent → Rational
Represents 25% as a ratio (1/4 or 0.25) Same as quarter but named for percentage context
final
two → Rational
Represents two (2)
final
twoFifths → Rational
Represents two fifths (2/5)
final
twoThirds → Rational
Represents two thirds (2/3)
final