ceilf
Description:
Rounds x
up to the nearest integer.
Note:
Remember to link the math library: valac -X -lm ...
Example: Rounds x upward (float):
public static int main (string[] args) {
// Outpu: ``ceilf (3.9f) = 4.0f``
print ("ceilf (%.1lff) = %.1lff\n", 3.9f, Math.ceilf (3.9f));
// Outpu: ``ceilf (3.1f) = 4.0f``
print ("ceilf (%.1lff) = %.1lff\n", 3.1f, Math.ceilf (3.1f));
return 0;
}
valac --pkg glib-2.0 -X -lm GLib.Math.ceilf.vala
Parameters:
x |
A numeric value. |
Namespace: GLib.Math
Package: glib-2.0