Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
sprintf « Development « Ruby
Ruby
Development
sprintf
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 )