elucidsoft / dotnet-stellar-sdk

Stellar API SDK for .NET 6.x
Apache License 2.0
116 stars 55 forks source link

Decimal for Asset Amount #314

Closed kevingkday closed 3 years ago

kevingkday commented 3 years ago

How can I create an asset with 0.0000001 as an amount, if the amount is a string?

kevingkday commented 3 years ago

This appears to work:

        decimal amount = 0.0000001m;
        string strAmount = amount.ToString(CultureInfo.InvariantCulture);