playMaker

Author Topic: Rounding Floats to user defined ranges  (Read 1535 times)

mweyna

  • Full Member
  • ***
  • Posts: 242
Rounding Floats to user defined ranges
« on: January 16, 2015, 03:47:09 AM »
Is there any existing way to round a float to a user defined number? So rather then using the absolutes of whole numbers, I could say, round to the nearest .5 or 1 in the nearest direction?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Rounding Floats to user defined ranges
« Reply #1 on: January 16, 2015, 05:02:05 AM »
Hi,

 I don't get this. Can you give an example of input and output?

 Bye,

 Jean

mweyna

  • Full Member
  • ***
  • Posts: 242
Re: Rounding Floats to user defined ranges
« Reply #2 on: January 16, 2015, 05:26:16 AM »
Nevermind, think I found a different way to approach this with some success.