Package-level declarations
Core functions and types.
Types
Represents a percentage number, a numerical value divided by 100.
Functions
Decreases this number by the given Percentage.
Increases this number by the given Percentage.
Creates a Percentage based on a number returned by the lambda function. Calculations using it won't be rounded.
Creates a Percentage based on this number. Calculations using it won't be rounded.
Creates a Percentage based on a number returned by the lambda function. Calculations using it will be rounded.
Creates a Percentage based on this number. Calculations using it will be rounded.
Creates a Percentage based on the ratio of this number and other number. Calculations using it won't be rounded. Example:
Creates a Percentage based on the ratio of this number and other number. Calculations using it will be rounded. Example:
Creates a Percentage which represents the relative change of this number to another number. Calculations using it won't be rounded. Example:
Creates a Percentage which represents the relative change of this number to another number. Calculations using it will be rounded. Example:
Sums all Percentage elements in the collection. The rounding strategy of the first element is preserved in the resulting Percentage.
Multiplies this number by the given Percentage.
Returns a detailed string representation of the object.
Calculates the base value of this number for the given Percentage. This method helps to answer the question: "5 is 20% of what number?" Example: