[前][次][番号順一覧][スレッド一覧]

ruby-changes:26412

From: drbrain <ko1@a...>
Date: Wed, 19 Dec 2012 16:31:07 +0900 (JST)
Subject: [ruby-changes:26412] drbrain:r38463 (trunk): * doc/syntax/literals.rdoc: Added 0d decimal format. Thanks Nobu!

drbrain	2012-12-19 16:30:58 +0900 (Wed, 19 Dec 2012)

  New Revision: 38463

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38463

  Log:
    * doc/syntax/literals.rdoc:  Added 0d decimal format.  Thanks Nobu!

  Modified files:
    trunk/ChangeLog
    trunk/doc/syntax/literals.rdoc

Index: doc/syntax/literals.rdoc
===================================================================
--- doc/syntax/literals.rdoc	(revision 38462)
+++ doc/syntax/literals.rdoc	(revision 38463)
@@ -43,13 +43,17 @@ Floating point numbers may be written as https://github.com/ruby/ruby/blob/trunk/doc/syntax/literals.rdoc#L43
 These numbers have the same value, 12.34.  You may use underscores in floating
 point numbers as well.
 
-You can also write numbers in hexadecimal, octal or binary formats.  For
+You can use a special prefix to write numbers in decimal, hexadecimal, octal
+or binary formats.  For decimal numbers use a prefix of <tt>0d</tt>, for
 hexadecimal numbers use a prefix of <tt>0x</tt>, for octal numbers use a
 prefix of <tt>0</tt> or <tt>0o</tt>, for binary numbers use a prefix of
 <tt>0b</tt>.  The alphabetic component of the number is not case-sensitive.
 
 Examples:
 
+  0d170
+  0D170
+
   0xaa
   0xAa
   0xAA
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 38462)
+++ ChangeLog	(revision 38463)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Dec 19 16:30:28 2012  Eric Hodel  <drbrain@s...>
+
+	* doc/syntax/literals.rdoc:  Added 0d decimal format.  Thanks Nobu!
+
 Wed Dec 19 16:19:36 2012  Eric Hodel  <drbrain@s...>
 
 	* doc/syntax/methods.rdoc:  Fixed typo.  Thanks to Josh Susser.

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]