Example: General samples

public static int main (string[] args) {
float f1 = 0.3f;
float f2 = 3.4f;

// Output: ``0.300000, 3.400000``
print ("%f, %f\n", f1, f2);
return 0;
}

 valac --pkg glib-2.0 float.vala

See:




2022 vala-language.org