RepeatingDecimal
com.phasmidsoftware.number.expression.parse.RepeatingDecimal
case class RepeatingDecimal(sign: Boolean, integerPart: String, nonRepeatingPart: Option[String], repeatingPart: String) extends ValuableNumber
Represents a repeating decimal number, including its sign, integer part, non-repeating fractional part (if any), and repeating fractional part.
This class models numbers that can be expressed as decimals with repeating cycles, providing functionality to compute their exact rational representation.
Value parameters
- integerPart
-
The integer portion of the decimal number.
- nonRepeatingPart
-
The non-repeating fractional part of the decimal (optional).
- repeatingPart
-
The repeating fractional part of the decimal.
- sign
-
Specifies the sign of the number (true for positive, false for negative).
Attributes
- Constructor
-
Creates a new instance of the RepeatingDecimal.
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ValuableNumberclass Objecttrait Matchableclass Any
Members list
In this article