Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trincate to one decimal place
Message
From
14/06/2010 12:27:37
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01468807
Message ID:
01468830
Views:
47
>>In .NET you can use math.truncate(number*10)/10
>>
>>Thanks - I should have thought of that myself.
>
>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..

A nice extension method comes to mind
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform