BetterFinds
Static Public Member Functions | List of all members
BetterFinds.Utils.Currency Class Reference

Provides utility functions for handling currency-related operations. More...

Static Public Member Functions

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...
 

Detailed Description

Provides utility functions for handling currency-related operations.

Member Function Documentation

◆ FormatDecimal()

static string BetterFinds.Utils.Currency.FormatDecimal ( decimal  price)
inlinestatic

Formats a decimal value as a string with two decimal places.

Parameters
priceThe 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
priceThe 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: