Math. Ceiling (), math. ceiling
Math. Ceiling (Decimal) |
Returns the smallest integer greater than or equal to the specified decimal number. |
Math. Ceiling (Double) |
Returns the smallest integer greater than or equal to the specified double-precision floating point number. Supported by. NET Compact Framework. |
It can be called the ceiling.
It can be used to convert seconds to minutes.
For example, Math. Ceiling (1.1) = 2; Math. Ceiling (1.0) = 1;
SystemMathCeiling (postsTotal/pageSize) ToString ();
The declared type of pageSize and postsTotal is incorrect.
It should be double or decimal.
Bitmap image = new Bitmap (int) MathCeiling (c (checkCodeLength * 95), 22?
I don't know whether it is C # code. If it is:
1. Bitmap image ==> Bitmap * image.
2. Bitmap * image = new Bitmap (int) Math. Ceiling (c (checkCode. Length * 9.5), 22); meaning
Declare the pointer image of a Bitmap object, and use the Bitmap constructor Bimap (int, int) to initialize the object. The two int parameters indicate the width and height of the bitmap respectively.
The width is determined by 9.5 times the Length of the checkCode object; the height is 22.
(Int) Math. Ceiling (c (checkCode. Length * 9.5) is to forcibly convert the double return value of the Math. Ceiling function to the int type.