Snippet. Vala. Convert Integer to StringTo convert a Integer (int) to String in Vala use the to_string() method. See the example bellow: // Define an int int number = 123; // Convert the int to string string string_number = number.to_string(); // Print to screen stdout.printf("%s\n",string_number); Example Updated on: 21 Dec 2024 |
|