Matlabda randomlamıydı o komut , ccs c de ceil ama kullanmadan önce dosyasınıza <math.h> dosyasini yüklemeyi unutmayin. isterseniz aşağı yuvarlayan mevcut:
Alıntı:
Syntax:
result = ceil (value)
Parameters:
value is a float
Returns:
A float
Function:
Computes the smallest integer value greater than the argument. CEIL(12.67) is 13.00.
Availability:
All devices
Requires:
#include <math.h>
Examples:
// Calculate cost based on weight rounded
// up to the next pound
cost = ceil( weight ) * DollarsPerPound;
Example Files:
None
Also See:
floor()
Aşağı yuvarlayan kod için ;
[h=2]floor( )[/h]
Syntax:
result = floor (value)
Parameters:
valueis a float
Returns:
result is a float
Function:
Computes the greatest integer value not greater than the argument. Floor (12.67) is 12.00.