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