How can I divide something that has numbers after it

Basically I want to divide the steps like this steps/10 but if i do it messes with the 0,1,0

v.CookingSuite.ProgressGuiAdv.Frame.Slider.Size = UDim2.new(v.CookingSuite.Progress.Value/itemData[v.Name].cooksTo.steps,0,1,0)

so how can I divide it and keep the numbers at the end

Is it this part you need help with?

If not, which part is the steps.

yes it is I want it to be like this v.CookingSuite.Progress.Value/itemData[v.Name].cooksTo.steps/10 but if i do that the number at the end dont work properly

You mean the numbers after the comma? The dividing isn’t the problem then, because you can divide something that has numbers after it like you say.

so then this works??

v.CookingSuite.Progress.Value/itemData[v.Name].cooksTo.steps/10,0,1,0

Yeah that works fine. What exactly is happening?

Basically the .steps. is a number and i want to divide it by 10 but if u write

v.CookingSuite.Progress.Value/itemData[v.Name].cooksTo.steps/10,0,1,0

With the /10,0,1,0 it messes with the Size of the UDim2 I think it divides it or something idrk the 0,10.0 are values for the UDim2

[[v.CookingSuite.ProgressGuiAdv.Frame.Slider.Size = UDim2.new]](v.CookingSuite.Progress.Value/itemData[v.Name].cooksTo.steps,0,1,0)

try it in brackets?

UDim2.new(v.CookingSuite.Progress.Value/(itemData[v.Name].cooksTo.steps/10),0,1,0)

that doesn’t work unfortunately

is this intentional? dividing v.CookingSuite.Progress.Value by itemData[v.Name].cooksTo.steps?

because if not then give this a try

UDim2.new(itemData[v.Name].cooksTo.steps/10, 0, 1, 0)

dividing v.CookingSuite.Progress.Value by itemData[v.Name].cooksTo.steps is needed so that wont work

i got no clue bro try this ig :sob::sob:

UDim2.new((v.CookingSuite.Progress.Value/itemData[v.Name].cooksTo.steps)/10, 0, 1, 0)

nope I have no idea what to do :skull:

Figured it out might as well post it here in case someone has a similar problem

local StepsDivided = itemData[v.Name].cooksTo.steps/10
UDim2.new((v.CookingSuite.Progress.Value/StepsDivided,0, 1, 0)