Horje
c# i lose 0 when converting int to string Code Example
c# i lose 0 when converting int to string
int myNumber = 010;
string myString = myNumber.ToString("D3");
Console.Write(myString);

/* D represents 'Decimal', and 3 is the specified amount of digits you want
   the number to always be. This will pad your value with zeroes until it 
   reaches 5 digits.*/




Csharp

Related
c# template Code Example c# template Code Example
c# get all namespaces in assembly Code Example c# get all namespaces in assembly Code Example
is keyboard clicked in Unity Code Example is keyboard clicked in Unity Code Example
how to use the mouse scroll wheel to move the camera in unity Code Example how to use the mouse scroll wheel to move the camera in unity Code Example
console reset color c# Code Example console reset color c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8