Math doubt

Hello, in my project, I want to make my Linear Velocity increases by 10 everytime my score increases by 50, but, well, I have no idea of how I’m going to do this by code. I mean, is there any operation for that?

Example:

Initial Velocity = 10, 10
Then
Score = 50
Velocity = 20, 20
Then
Score = 100
Velocity = 30, 30
Then
Score = 150
Velocity = 40, 40

Understand?
Please, if anyone could help me, I really appreciate. [import]uid: 69287 topic_id: 12637 reply_id: 312637[/import]

try something like:

velocityX = (math.floor(score / 50) + 1) * 10
velocity = velocityX, velocityX

Scores 0-49 will result in 10, 50-99 in 20, etc.

or you could do:

velocityX = math.ceil(score / 50) * 10
velocity = velocityX, veloictyX

But scores of 0-50 would result in 10, 51-100, 20, etc.

Its a minor difference but . . . [import]uid: 19626 topic_id: 12637 reply_id: 46261[/import]

Wow, thank you so much for the support, I researched some math functions, but hadn’t gone to this math.floor, I appreciate so much your help, thank you A LOT. [import]uid: 69287 topic_id: 12637 reply_id: 46266[/import]