Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trincate to one decimal place
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01468807
Message ID:
01468824
Vues:
55
Why the truncate function doesn't allow you to truncate at a certain position is one of those 'what were they thinking when they designed it' questions..

I agree. However, your solution is not working for me. Here is the calculation:
lnHandicap = Math.Truncate(Decimal.Multiply(lnHandicap / lnCount, lnPercent)*10)/10;
Any ideas?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform