The FXScript Reference

For Final Cut Pro created by Joe Maller

Integer

Integer(value)

Additional Notes

Rounds towards zero

Integer essentially drops any fractional part of a number and returns the whole integer closest to zero.

integer(9.9) = 9
integer(1.1) = 1
integer(-1.5) = -1


The rounding method is important to know about since it can lead to what are known as "bankers errors" where results are statistically biased downwards. This bias can lead to errors over time.