Class SingleExtensions
Extension methods for Single and Double.
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public static class SingleExtensions
Methods
ToStringWithVariableDecimalCount(double, CultureInfo)
Returns a string representation of the value with a variable number of decimal places.
Declaration
public static string ToStringWithVariableDecimalCount(this double val, CultureInfo cultureInfo)
Parameters
Type | Name | Description |
---|---|---|
double | val | The value to convert. |
CultureInfo | cultureInfo | The culture info to use. |
Returns
Type | Description |
---|---|
string | A string representation of the value with a variable number of decimal places. |
ToStringWithVariableDecimalCount(float, CultureInfo)
Returns a string representation of the value with a variable number of decimal places.
Declaration
public static string ToStringWithVariableDecimalCount(this float val, CultureInfo cultureInfo)
Parameters
Type | Name | Description |
---|---|---|
float | val | The value to convert. |
CultureInfo | cultureInfo | The culture info to use. |
Returns
Type | Description |
---|---|
string | A string representation of the value with a variable number of decimal places. |