sprintf « Development « Ruby






1.Field types for sprintf
2.Sprintf Flags and Field Types
3.Use sprintf("%08b", num) to convert input to binary number
4.Print out time in Begin and end block
5.sprintf( "%0.2f", my_bmi )