This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
dev:core:funref:abs_ceil [2019-10-02 20:47] 82.67.173.193 created |
dev:core:funref:abs_ceil [2020-01-22 10:53] (current) admin ↷ Page moved from reference:advtrains:abs_ceil to dev:core:funref:abs_ceil |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== advtrains.abs_ceil ====== | ====== advtrains.abs_ceil ====== | ||
- | //Returns the absolute ceiling of the number.// | + | //Rounds a number |
//Notes:// | //Notes:// | ||
Line 10: | Line 10: | ||
advtrains.abs_ceil(i) | advtrains.abs_ceil(i) | ||
</ | </ | ||
- | |||
- | ===== Extended description ===== | ||
- | This function acts: | ||
- | * as a **ceiling function** with positive numbers, where the returned integer is greater or equal than the argument. | ||
- | * as a **floor function** with negative numbers, where the returned integer is less or equal than the argument. | ||
===== Parameters ===== | ===== Parameters ===== | ||
Line 20: | Line 15: | ||
===== Returns ===== | ===== Returns ===== | ||
- | The absolute ceiling of the specified argument. | + | The specified argument |
===== Examples ===== | ===== Examples ===== |