Fraction
class Fraction extends Message
Represents a fraction in terms of a numerator divided by a denominator.
Generated from protobuf message google.type.Fraction
Methods
Constructor.
The portion of the denominator in the faction, e.g. 2 in 2/3.
The portion of the denominator in the faction, e.g. 2 in 2/3.
The value by which the numerator is divided, e.g. 3 in 2/3. Must be positive.
The value by which the numerator is divided, e.g. 3 in 2/3. Must be positive.
Details
at line 45
__construct(array $data = NULL)
Constructor.
at line 56
int|string
getNumerator()
The portion of the denominator in the faction, e.g. 2 in 2/3.
Generated from protobuf field int64 numerator = 1;
at line 68
$this
setNumerator(int|string $var)
The portion of the denominator in the faction, e.g. 2 in 2/3.
Generated from protobuf field int64 numerator = 1;
at line 83
int|string
getDenominator()
The value by which the numerator is divided, e.g. 3 in 2/3. Must be positive.
Generated from protobuf field int64 denominator = 2;
at line 96
$this
setDenominator(int|string $var)
The value by which the numerator is divided, e.g. 3 in 2/3. Must be positive.
Generated from protobuf field int64 denominator = 2;