General

Profile

chumaltd (Takahiro Chuma)

  • Login: chumaltd
  • Registered on: 11/21/2020
  • Last sign in: 11/24/2020

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 0 1

Activity

11/24/2020

04:24 AM Ruby Feature #17339: Semantic grouping with BigDecimal#to_s
I read doc again, and understand the situation.
If we have a chance to change API, another formatting option like `#to_s('G')` can be good that works as '3F'.
Then we'll have beautiful 'E', 'F', 'G' options.
As I referred, SI conf...
chumaltd (Takahiro Chuma)

11/21/2020

03:25 PM Ruby Feature #17339: Semantic grouping with BigDecimal#to_s
nobu (Nobuyoshi Nakada) wrote in #note-3:
> Shouldn't `BigDecimal('1234567').to_s('3F')` return `"1 234 567.0"` (without spaces at the beginning and just before the decimal dot), but not `" 1 234 567 .0"`, right?
> ...
Thank you for di...
chumaltd (Takahiro Chuma)
07:05 AM Ruby Feature #17339 (Assigned): Semantic grouping with BigDecimal#to_s
# Abstract
Thousands, millions, ... should be expressible with `BigDecimal#to_s`.
# Background
`BigDecimal('1234567').to_s('3F')` returns "123 456 7.0".
# Proposal
- Have an option with which `BigDecimal('1234567').to_s('3F')`...
chumaltd (Takahiro Chuma)

Also available in: Atom