Thread: rounding up?
-
April 13th, 2006, 03:12 #1
- Join Date
- Nov 2005
- Posts
- 39
rounding up?
Is it possible for a number control to round up?
-KyleC
-
April 21st, 2006, 11:27 #2
Can you give us a bit more info as to what you are trying to do?
Numbercontrols only accept integer values. So there should be no need to round...unless you are doing a division operation, in which case I don't think you have any control over the rounding...
-
April 25th, 2006, 19:59 #3
- Join Date
- Nov 2005
- Posts
- 39
Originally Posted by Toadwart
That's a bummer, but thanks for the help.
-KyleC
-
April 25th, 2006, 20:31 #4
A way around in some specific cases is to make use of valuemaps. Say, you wanted to add together two numbers, divide by two and round up. You could add the figures together and define a valuemap (which is basically a look-up table) to perform the division so that the valuemap="0:0,1:1,2:1,3:2,4:2" etc.
-
April 26th, 2006, 15:37 #5
- Join Date
- Nov 2005
- Posts
- 39
Originally Posted by Ged
-KyleC
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks