Hey i'm new to this forum aswell as programming..
So i'm currently doing some C#, and i want to make some changes on int's <10
Is there a way i can convert int X to int 0X
Like 5 -> 05
Basicly just a zero in front of the int.
Depends on the context. It is a formatting problem. An integer variable will store the same value nevertheless (an integer variable set to 5 would store the same value as one set to 05), but the way you present it can be altered. You would have to give us more details before we can help you.
Hey! Check out my new Toyota keyboaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Well the value will of course be 5, but i want it displayed as 05 in a textbox
You can just display it as a string with 0 tacked on or something.
Like this:
Code:textBox1.Text = "0" + x;
Well ofc! Thx mate![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks