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