Casting a Variable
Sometimes, you can use a variable in multiple ways:
Float as an integer
Integer as a float
""
can befalse
or0
This is called an empty string
Other times, the variable has to be cast into another type using an extra step.
This varies widely among languages, so it's best to look it up.
Examples:
Processing example:
C# example:
Python example:
Last updated