Using commas with math.clamp

Hey i was trying to use commas with math.clamp “.” but I can’t use it it detects it as a string anything i could do?

math.clamp(tonumber(script.Parent.AmountBGStuds.Amount.Text), 0.001, 100.000)

tonumber() can turn a string into a number