Example: Float to string

public static int main () {
float num = 0.123f;
print ("%s\n", num.to_string ());
return 0;
}

 valac --pkg glib-2.0 float.to_string.vala

See:




2022 vala-language.org