Just do:

`print(variablename)`

I don’t want to check through the output, I want to check through the script, I’m not sure how that’s really going to help me figure out if there is a decimal point in the variable.

Like, I want to find a way to identify an Integer and a Decimal

You could do something like

```
local IsInt = (Number % math.floor(Number)) == 0
```

This will check if the remainder after dividing by the rounded version of the given number is zero or not. If it isn’t, then there’s a decimal component and thus it’s not an integer.

I don’t think there is another way to find the value of a variable only threw the script and not threw the output. Unless you manually give it a value.

you can also do this:

```
local Number1 = 4
local Number2 = 3.1415
print(string.find(Number1, "%.")) -- nil
print(string.find(Number2, "%.")) -- 2 2
```

You could, yes. FYI you don’t need the `== true`

in the statement, just doing

```
if(string.find(Number, "%.")) then
//code
end
```

would suffice.

yeah, it would work with the `== true`

bc it gives the position of the character or nil

Never saw `%`

being used as a math operator, could you explain what it does?

It’s called the modulo operator. Like I said in my reply, it performs a division between two numbers and returns the remainder. For example: dividing 4 by 2 has no remainder because 2 perfectly fits into 4 twice; dividing 5 by 2 has a remainder of 1 because there is no integer multiple of 2 that is equal to 5, so we can fit two 2s into 4 with 1 left over. It’s a bit confusing at first, but just think about it a little bit.