Scoring numbers in the hundredths place? HELP

I convert the number into a string.

Then in this line I set the variable that has the string to whatever the string.sub function finds.

For the first argument which is what string it is looking for a pattern in, I just put the string version of the number.

For the second argument I simply just string the decimal point in the string (I realized that I could’ve just replaced that with simply “.” but oh well) NVM YOU DO NEED THE POSITION OF THE DECIMAL POINT NOT AN ACTUAL STRING SO YOU ACTUALLY DO NEED STRING.FIND

For the third and final argument, I once again use the string.find function with the argument for that as ”%.” but I also add the stopAt argument that you provided in the original function (convert) which basically just gets the number of numbers after the decimal point.

Then the string the sub function just isolates those numbers after the decimal point which I save to a new “num” variable.

I then just do this:

Which concatenates the isolated numbers with all the number after the decimal point which just makes it so that true desired amount of numbers after the decimal point is displayed.

While writing I’ve noticed that I could definitely shorten the function a lot and that this is not efficient but well yeah