Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Decimal vs double
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00745797
Message ID:
00745818
Vues:
15
I am not sure about vb.net but in C# you need to suffix the value with M.
e.g.

dSalesAmount = 725.53M

123.45M
>Hi,
>
>I'am new to vb.
>
>I tried the following:
>
>Dim dSalesAmount AS Deciaml
>dSalesAmount = 0
>
>Dim dTotal AS Decimal
>dTotal = 0
>
>Works!
>dSalesAmount = 725
>
>Does not work!
>dSalesAmount = 725.53
>
>Decimal does not appear to support values like .0725.
>dTotal = SalesAmount * .0725
>
>The online help seems to state that it does support decimal places.
>
>What's Decimal and Double used for?
>
>Does VB automatically convert TextBox Controls to math if you use it in a calculation?
>
>Thanks
>Roland
- Jayesh
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform