mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
[ruby/bigdecimal] Update to_s doc examples
https://github.com/ruby/bigdecimal/commit/8a94a29cf1
This commit is contained in:
parent
10f59dcbcd
commit
5f07f78e86
@ -2697,14 +2697,14 @@ BigDecimal_ceil(int argc, VALUE *argv, VALUE self)
|
||||
*
|
||||
* Examples:
|
||||
*
|
||||
* BigDecimal('-123.45678901234567890').to_s('5F')
|
||||
* #=> '-123.45678 90123 45678 9'
|
||||
* BigDecimal('-1234567890123.45678901234567890').to_s('5F')
|
||||
* #=> '-123 45678 90123.45678 90123 45678 9'
|
||||
*
|
||||
* BigDecimal('123.45678901234567890').to_s('+8F')
|
||||
* #=> '+123.45678901 23456789'
|
||||
* BigDecimal('1234567890123.45678901234567890').to_s('+8F')
|
||||
* #=> '+12345 67890123.45678901 23456789'
|
||||
*
|
||||
* BigDecimal('123.45678901234567890').to_s(' F')
|
||||
* #=> ' 123.4567890123456789'
|
||||
* BigDecimal('1234567890123.45678901234567890').to_s(' F')
|
||||
* #=> ' 1234567890123.4567890123456789'
|
||||
*/
|
||||
static VALUE
|
||||
BigDecimal_to_s(int argc, VALUE *argv, VALUE self)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user