Provides utility functions for handling currency-related operations.
More...
|
static string | FormatDecimal (decimal price) |
| Formats a decimal value as a string with two decimal places. More...
|
|
static string | FormatDecimalObject (object? price) |
| Formats an object representing a decimal value as a string with two decimal places. If the provided object is null, it defaults to formatting zero. More...
|
|
Provides utility functions for handling currency-related operations.
◆ FormatDecimal()
static string BetterFinds.Utils.Currency.FormatDecimal |
( |
decimal |
price | ) |
|
|
inlinestatic |
Formats a decimal value as a string with two decimal places.
- Parameters
-
price | The decimal value to format. |
- Returns
- A string representation of the formatted decimal value.
◆ FormatDecimalObject()
static string BetterFinds.Utils.Currency.FormatDecimalObject |
( |
object? |
price | ) |
|
|
static |
Formats an object representing a decimal value as a string with two decimal places. If the provided object is null, it defaults to formatting zero.
- Parameters
-
price | The object representing the decimal value to format. |
- Returns
- A string representation of the formatted decimal value.
The documentation for this class was generated from the following file:
- BetterFinds/Utils/Currency.cs