C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




How to Round of Float values


Posted Date: 20 May 2008    Resource Type: Code Snippets    Category: ASP.NET WebForms
Author: vijethaMember Level: Gold    
Rating: Points: 10



The following code sample shows how to round off float values. It takes 2 parameters one is the double value,second parameter specifies after how many digts it should be rounded

Math.Round(0.8993333, 2)




Responses

Author: Programmer    20 May 2008Member Level: Gold   Points : 2
Math.Round is a function which available in both asp.net and javascript.The difference is that in javascript it does not accepts second parameter and converts it into round figure.
For eg,
Math.round(25.9) //returns 26




Author: vivek kushwaha    21 May 2008Member Level: Silver   Points : 2
check this one.
http://msconline.maconstate.edu/tutorials/VBNET/VBNET01/vbnet01-08.aspx


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: How to get child controls in an usercontrol from an aspx page
Previous Resource: How to add a row to a datatable
Return to Discussion Resource Index
Post New Resource
Category: ASP.NET WebForms


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use