CFanatic

Go Back   CFanatic > Programming > C# Programming

Join CFanatic Forum Now

Rounding off number topic posted under C# Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 08-31-2010, 02:26 AM
 
Join Date: Aug 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
sweet_babylhyn is on a distinguished road
| More
Rounding off number

Hello guys,

How can I get the round off number disregarding the next number specify in length of decimal places in math.round. Example, I want to round off 1.499 to 1.49 not 1.5.

My program has a condition if the decimal places is more than .05, it will add 1. example 1.0521 will become 2. But if its 1.0498 will become 1.

It is possible guys?

Thanks in advance.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
number system sayantani nath C Programming 1 09-02-2010 04:07 AM
Random number. Danny_501 C Programming 0 08-28-2010 03:11 AM
Random number. Danny_501 C Programming 0 08-28-2010 03:11 AM
Huge Number techinspiration C++ Programming 8 03-24-2010 08:38 PM
Armstrong number or not ? hkp819 C++ Programming 4 01-13-2010 06:31 AM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 02:21 AM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board