Hi,
I am attempting to recreate an entire VBA macro in google sheets.

I know basics of script, but not a pro by any means.

How do I do
Dim x As Integer
As Single

In script?
thanks in advance!