User Tools

Site Tools


dev:core:funref:abs_ceil

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 away from zero.//
  
 //Notes:// //Notes://
Line 10: Line 10:
 advtrains.abs_ceil(i) advtrains.abs_ceil(i)
 </code> </code>
- 
-===== 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 rounded away from zero.
  
 ===== Examples ===== ===== Examples =====
dev/core/funref/abs_ceil.1570042056.txt.gz · Last modified: 2019-10-02 20:47 by 82.67.173.193