Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Mupp on April 01, 2021, 05:23:43 PM
-
I'm looking for a way to round a float to nearest divisible by X and it should work for both positive and negative floats. How can I do that?
-
There should be actions on the ecosystem for this. Search for Float Round or Ceiling/Floor if you want to round up/down.
-
Thanks, I thought float round worked in a completely different way...
-
Actually, you're right, I misread your question. Round just rounds to the nearest whole number.
What you want is a little more complicated! I'll have to get back to you after I take a look at the ecosystem...
-
What you want is probably Float Round To Nearest (on the Ecosystem).
-
Got it, thanks.