Project

General

Profile

Actions

Backport #1195

closed

String#% does not include prefix before zero value for # versions of numeric formats

Added by headius (Charles Nutter) about 15 years ago. Updated about 13 years ago.

Status:
Rejected
Assignee:
-
[ruby-core:22353]

Description

=begin
Ruby 1.8.7:

$ /opt/local/bin/ruby -e "p('%#b %#B %#o %#x %#X' % [0,0,0,0,0])"
"0b0 0B0 00 0x0 0X0"

Ruby 1.9.1p0:

$ ruby1.9 -e "p('%#b %#B %#o %#x %#X' % [0,0,0,0,0])"
"0 0 0 0 0"
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0