зеркало из https://github.com/github/ruby.git
* doc/syntax/literals.rdoc: Added 0o octal integers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
831af844ef
Коммит
87f099d069
|
@ -1,3 +1,7 @@
|
||||||
|
Tue Dec 18 11:45:26 2012 Eric Hodel <drbrain@segment7.net>
|
||||||
|
|
||||||
|
* doc/syntax/literals.rdoc: Added 0o octal integers.
|
||||||
|
|
||||||
Tue Dec 18 12:28:52 2012 Martin Bosslet <Martin.Bosslet@gmail.com>
|
Tue Dec 18 12:28:52 2012 Martin Bosslet <Martin.Bosslet@gmail.com>
|
||||||
|
|
||||||
* test/openssl/test_ssl.rb: Use :TLSv1_2_client explicitly in
|
* test/openssl/test_ssl.rb: Use :TLSv1_2_client explicitly in
|
||||||
|
|
|
@ -45,8 +45,10 @@ point numbers as well.
|
||||||
|
|
||||||
You can also write numbers in hexadecimal, octal or binary formats. For
|
You can also write numbers in hexadecimal, octal or binary formats. For
|
||||||
hexadecimal numbers use a prefix of <tt>0x</tt>, for octal numbers use a
|
hexadecimal numbers use a prefix of <tt>0x</tt>, for octal numbers use a
|
||||||
prefix of <tt>0</tt>, for binary numbers use a prefix of <tt>0b</tt>. The
|
prefix of <tt>0</tt> or <tt>0o</tt>, for binary numbers use a prefix of
|
||||||
alphabetic component of the number is not case-sensitive. Examples:
|
<tt>0b</tt>. The alphabetic component of the number is not case-sensitive.
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
|
||||||
0xaa
|
0xaa
|
||||||
0xAa
|
0xAa
|
||||||
|
@ -56,6 +58,8 @@ alphabetic component of the number is not case-sensitive. Examples:
|
||||||
0XaA
|
0XaA
|
||||||
|
|
||||||
0252
|
0252
|
||||||
|
0o252
|
||||||
|
0O252
|
||||||
|
|
||||||
0b10101010
|
0b10101010
|
||||||
0B10101010
|
0B10101010
|
||||||
|
|
Загрузка…
Ссылка в новой задаче