Help with SumRndmDde's Stat Distribution plugin

Hey, everyone! I'm using this plugin to give more stat customization to the player, but I'm having touble with the formulas. Specifically, the cost formula.

This is the one I'm using: Math.ceil(actor.atk / 10) + 1






So, if I understand correctly... This should make that for every 10 attack points the actor has, the cost goes up 1 point. Since my character's attack is 22, the cost should be 3 points... And it's currently asking for 4. I know I'm missing something, or that I'm doing something wrong. I just don't know what. I suck when it comes to formulas, so I'd really appreciate any kind of help you could provide.

Thanks in advance!
ceiling means that the number will be rounded up. 22/10 is 2.2, rounded up is 3. and then you add 1 to it, giving it exactly the 4 that the engine requires.
ceiling means that the number will be rounded up. 22/10 is 2.2, rounded up is 3. and then you add 1 to it, giving it exactly the 4 that the engine requires.

Thanks a lot for the quick response! I imagined it was something like that... The formula I'm using was actually taken from an example, so I wasn't completely sure of what it did. It's good to know how it works for sure now. Just one more thing, is there a way to make it so the result is not rounded up?

Original thread: https://forums.rpgmakerweb.com/threads/help-with-sumrndmddes-stat-distribution-plugin.116312/