× Phaseshift FCOM Tutorials

Math Functions


Learn how to use these common Math functions in Unity

This tutorial goes through commonly used Math functions in conjunction with Unity. This article is a work in progress, more will be added as more useful functions are discovered!

Rounding values


Math.Floor() will round float values down to the nearest integer.

Math.Ceiling() will round float values up to the nearest integer.

Documentation


To explore more on these topics, check out the documentation:

Floor/Ceiling

Liked this article?

Please consider sharing!
Author

Josh Lyell

Game Developer