Class ParseUtils.Int
Utility class for parsing integer values
Inherited Members
Namespace: Serenity.Shared.Utils
Assembly: Serenity.Shared.dll
Syntax
public static class ParseUtils.Int
Methods
Parse(float)
Parse a float value into an integer by truncating the decimal part
Declaration
public static int Parse(float value)
Parameters
| Type | Name | Description |
|---|---|---|
| float | value | The float value to parse |
Returns
| Type | Description |
|---|---|
| int | The parsed integer value |
Parse(string)
Parse a string value into an integer
Declaration
public static int Parse(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | The string value to parse |
Returns
| Type | Description |
|---|---|
| int | The parsed integer value |
ToString(int)
Convert an integer value to its string representation
Declaration
public static string ToString(int value)
Parameters
| Type | Name | Description |
|---|---|---|
| int | value | The integer value to convert |
Returns
| Type | Description |
|---|---|
| string | The string representation of the integer value |