Skip to main content

What Is A Float And Integer?


Float is short for floating point which is a decimal value (example: var three : float = 3.14.

An int (integer) is a number without decimal (example: var three : int = 3. Basically they are the two user variables used together with calculations. Basic text is called a string which is set by quotations (example: var three = "3".
To convert between them you can use:
numberVariable.ToString()
parseInt(stringOrFloatToIntVariable)
Mathf.RoundToInt(floatToIntVariable) <- (this one has lots of options)

Special Thanks to save

Comments