Should be pretty easy:
decimal result = decimal.Parse("002056")/100m;
The numeric types in .NET have
Parse()
and
TryParse()
methods to handle the conversion. If you're guaranteed the s9(6)99 format, you can likely get away with
Parse()
.
Use the m suffix to denote decimal types. Decimal gives you the precision you need for currency.
Cheers.