Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trincate to one decimal place
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01468807
Message ID:
01468824
Views:
56
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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform