RoundedToNearest | |||||||
Type | operator | ||||||
Dictionary | LCB | ||||||
Library | LiveCode Builder | ||||||
Syntax |
| ||||||
Associations | com.livecode.mathfoundation | ||||||
Summary | Rounds Target to the nearest integer. | ||||||
Parameters |
| ||||||
Example |
| ||||||
Values |
| ||||||
Description | Return the greatest integer less than or equal to Target, or the least integer greater than or equal to Target depending on which is closest. If Target is exactly halfway between two integers, returns the one with greatest absolute value, i.e. away from 0. | ||||||
Tags | math |