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

Last revision Both sides next revision
dev:core:funref:abs_ceil [2019-10-02 20:47]
82.67.173.193 created
dev:core:funref:abs_ceil [2019-10-03 19:13]
82.67.173.193
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.txt · Last modified: 2020-01-22 10:53 by admin