|
|
| Floor | ||
| Result = Floor(Value#) | ||
| Parameters: Value# = The value you wish to floor |
||
| Returns: Result = The truncated integer |
||
The Floor function returns a floating-point value representing the largest integer that is less than or equal to Value#. Functions like floor and int are useful when we don't want PlayBASIC to perform any rounding operations when moving the result of a floating point expression to an integer variable/array. FACTS: * Int and Floor are functionality the same. Mini Tutorial:
This example would output.
|
| Related Info: | Ceil | Int | RoundDown | RoundUp : |
|
|
|||||||||||||||||||||||||||||||||||||||
|
(c) Copyright 2002 - 2026 - Kevin Picone - PlayBASIC.com |