Class SingleExtensions
Extension methods for Single and Double.
Inherited Members
Namespace: UnityEngine.Dt.App.UI
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(Single, 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 |
---|---|---|
Single | 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. |