Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
int i=99; string s=i.ToString("D4"); //s=="0099"
テキスト形式の数値の先行ゼロの効率的な実装についてアドバイスをお願いします。
通常、私は次のようにします:
RIGHT('0000' + [col], 4)