How to round or convert doubles?

Hey all! I am having an issue with doubles. I need a way to either round doubles to the nearest integer, or to convert them to a float or an int. Specifically, I need to get doubles to work with Mathf.RoundtoInt(). Thanks in advance!

In C# you can just cast them:

int myInt = Mathf.RoundToInt((float)myDouble);

I’m going to assume you are just going off an error in compiler complaining about doubles where you use ‘6.5’; if so, put an “f” at the end, like 6.5f

If you are really looking for more double/round stuff, let me know.