Use printf to print the output to your display (the default standard output device). : printf « Development « Ruby






Use printf to print the output to your display (the default standard output device).


printf( "Hello, %s", "Matz!" ) # => Hello, Matz!

 








Related examples in the same category

1.printf("%.55f", 1.9)
2.printf("%.55f", 1.8 + 0.1)
3.printf with format
4.printf prints its arguments under the control of a format string