8 calls to Fraction::createFromDecimal() in Fraction 8
- DecimalFraction::transform in src/
Plugin/ migrate/ process/ DecimalFraction.php - Performs the associated process.
- Fraction::fromDecimal in src/
Fraction.php - Calculates the numerator and denominator from a decimal value.
- FractionConstraintTest::generateFraction in tests/
src/ Kernel/ Plugin/ Constraints/ FractionConstraintTest.php - Helper method that generates fraction from decimal to set it on field.
- FractionDecimal::validateDecimal in src/
Element/ FractionDecimal.php - Validates the fraction_decimal element.
- FractionItem::generateSampleValue in src/
Plugin/ Field/ FieldType/ FractionItem.php - Generates placeholder field values.
- FractionTarget::prepareValue in src/
Feeds/ Target/ FractionTarget.php - Prepares a single value.
- fraction_from_decimal in ./
fraction.module - Convert a decimal value into a fraction object.
- PercentageFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ PercentageFormatter.php - Builds a renderable array for a field value.