Formatting output string with String.Format is really helpful, and it's been mostly use when you develop application using C# or VB.Net. String.Format firstly released in .NET Framework 1.1. String.Format is for replaces each format item in a specified String with the text equivalent of a corresponding object's value.String.Format overload function:Basic use:As you see the argument that inside the curly braces {0}, is the string format that will replace by the arg0. Which have this … Read more...
[TIPS] Convert Your Numbers To Human Readable Format
Sometimes your code produce a large numbers which is hard for user to read it. For example 17753392783 bytes or 18293753038 unit. For human eyes, it is easier to get 17MB or 1 million rather than lot of numbers.I write this as quick tips for you, in case you want to convert your data to human readable format. I do this in PHP, for other programming language you can get the algorithm and convert it to your own language:Usage:Thank you for read this article. Good luck and have a … Read more...