--- sprintf version 24 Wed Dec 26 19:45:08 +0000 2007 +++ sprintf version 25 Sat Mar 08 05:37:34 +0000 2008 @@ -1,13 +1,4 @@ -%b => Binary integer -%c => Single character -%d => Decimal integer -%e => Decimal integer displayed in exponential form -%f => Floating point number -%g => Same as %e if exponent is less than -4, %f otherwise -%o => Octal integer -%s => String -%u => Unsigned decimal integer -%x => Hexadecimal integer -%02d => 0 padded two digits -%.02f => round to the hundredths +%s => string +%d => number +%f => float
cheat sheets.
$ cheat sprintf( add new | see all )
- updated sheets

- cheat
- shoulda
- capistrano
- rpm
- string
- sqld4r
- cheat_el
- magit
- to_i
- bm
- rails_date_formats
- sequel
- dexagogo_form_validation
- git
- git_remote_branch
Advertisement