* sprintf.c: fix comment. [ruby-dev:33275]
* math.c: fix comment. [ruby-dev:33276] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
da8e083ba6
commit
d4f83d2261
@ -1,3 +1,8 @@
|
|||||||
|
Wed Jan 23 23:54:40 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||||
|
|
||||||
|
* sprintf.c: fix comment. [ruby-dev:33275]
|
||||||
|
* math.c: fix comment. [ruby-dev:33276]
|
||||||
|
|
||||||
Wed Jan 23 22:47:34 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
Wed Jan 23 22:47:34 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||||
|
|
||||||
* test/ruby/test_struct.rb: add tests to achieve over 90% test
|
* test/ruby/test_struct.rb: add tests to achieve over 90% test
|
||||||
|
2
math.c
2
math.c
@ -128,7 +128,7 @@ math_acos(VALUE obj, VALUE x)
|
|||||||
* call-seq:
|
* call-seq:
|
||||||
* Math.asin(x) => float
|
* Math.asin(x) => float
|
||||||
*
|
*
|
||||||
* Computes the arc sine of <i>x</i>. Returns 0..PI.
|
* Computes the arc sine of <i>x</i>. Returns -{PI/2} .. {PI/2}.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
|
@ -221,12 +221,7 @@ sign_bits(int base, const char *p)
|
|||||||
* s | Argument is a string to be substituted. If the format
|
* s | Argument is a string to be substituted. If the format
|
||||||
* | sequence contains a precision, at most that many characters
|
* | sequence contains a precision, at most that many characters
|
||||||
* | will be copied.
|
* | will be copied.
|
||||||
* u | Treat argument as an unsigned decimal number. Negative integers
|
* u | Identical to `d'.
|
||||||
* | are displayed as a 32 bit two's complement plus one for the
|
|
||||||
* | underlying architecture; that is, 2 ** 32 + n. However, since
|
|
||||||
* | Ruby has no inherent limit on bits used to represent the
|
|
||||||
* | integer, this value is preceded by two dots (..) in order to
|
|
||||||
* | indicate a infinite number of leading sign bits.
|
|
||||||
* X | Convert argument as a hexadecimal number using uppercase
|
* X | Convert argument as a hexadecimal number using uppercase
|
||||||
* | letters. Negative numbers will be displayed with two
|
* | letters. Negative numbers will be displayed with two
|
||||||
* | leading periods (representing an infinite string of
|
* | leading periods (representing an infinite string of
|
||||||
@ -243,7 +238,7 @@ sign_bits(int base, const char *p)
|
|||||||
* sprintf("%1$*2$s %2$d %1$s", "hello", 8) #=> " hello 8 hello"
|
* sprintf("%1$*2$s %2$d %1$s", "hello", 8) #=> " hello 8 hello"
|
||||||
* sprintf("%1$*2$s %2$d", "hello", -8) #=> "hello -8"
|
* sprintf("%1$*2$s %2$d", "hello", -8) #=> "hello -8"
|
||||||
* sprintf("%+g:% g:%-g", 1.23, 1.23, 1.23) #=> "+1.23: 1.23:1.23"
|
* sprintf("%+g:% g:%-g", 1.23, 1.23, 1.23) #=> "+1.23: 1.23:1.23"
|
||||||
* sprintf("%u", -123) #=> "..4294967173"
|
* sprintf("%u", -123) #=> "-123"
|
||||||
*/
|
*/
|
||||||
|
|
||||||
VALUE
|
VALUE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user