5E Character Create Playlist

Thread: rounding up?

  1. #1

    rounding up?

    Is it possible for a number control to round up?

    -KyleC

  2. #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...

  3. #3
    Quote Originally Posted by Toadwart
    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...
    I think you just answered my question. I am performing a division operation and would have liked to be able to round the result up instead of down.

    That's a bummer, but thanks for the help.

    -KyleC

  4. #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.

  5. #5
    Quote Originally Posted by Ged
    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.
    That's what I eventually ended up doing.

    -KyleC

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
DICE PACKS BUNDLE

Log in

Log in