[ruby/bigdecimal] Update to_s doc examples

https://github.com/ruby/bigdecimal/commit/8a94a29cf1
This commit is contained in:
cryptogopher 2023-07-02 13:44:03 +02:00 committed by git
parent 10f59dcbcd
commit 5f07f78e86

View File

@ -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)