Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

yonggon's Content

There have been 2 items by yonggon (Search limited from 29-March 23)


By content type

See this member's

Sort by                Order  

#55824 How to format a decimal number string with zero padding?

Posted by yonggon on 03 February 2014 - 06:54 AM in Visual Studio

Thank you RobB916 and Chris!




#55608 How to format a decimal number string with zero padding?

Posted by yonggon on 24 January 2014 - 03:05 PM in Visual Studio

I want to make a three digit string with an integer. So 31 becomes 031 and 9 becomes 009.

 

I tried number.ToString("D3") or number.ToString("000") as you would with VS C#, but these does not work.

 

I have been searching all over and have been struggling with this but cannot find a solution other than writing a code strip for it.

 

Help!

 





home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.