Click here to Skip to main content
13,004,123 members (108,939 online)
Rate this:
Please Sign up or sign in to vote.
See more:
how to round off value when its 2.1 it will take 3 not 2 please help me
Posted 28-Apr-13 19:38pm
Maciej Los 29-Apr-13 1:51am
What have you tried till now?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

i have done it by Using
roundedValue = Math.Ceiling(InitialValue)
Maciej Los 29-Apr-13 1:59am
Good work, +5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170627.1 | Last Updated 29 Apr 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100