< Futurebasic < Language < Reference

USR EVEN(expr)

Description - This function returns the smallest even integer which is greater than or equal to the integer part of expr. USR EVEN can be useful for finding even address boundaries.

Example: PRINT USR EVEN(5) PRINT USR EVEN(-9) PRINT USR EVEN(40.3) PRINT USR EVEN(160)

Program output:

6
-8
40
160

See Also MOD

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.