[#101179] Spectre Mitigations — Amel <amel.smajic@...>
Hi there!
5 messages
2020/12/01
[#101180] Re: Spectre Mitigations
— Chris Seaton <chris@...>
2020/12/01
I wouldn’t recommend using Ruby to run in-process untrusted code in the first place. Are people doing that?
[#101694] Ruby 3.0.0 Released — "NARUSE, Yui" <naruse@...>
We are pleased to announce the release of Ruby 3.0.0. From 2015 we
4 messages
2020/12/25
[ruby-core:101511] [Ruby master Feature#17339] Semantic grouping with BigDecimal#to_s
From:
muraken@...
Date:
2020-12-18 14:37:44 UTC
List:
ruby-core #101511
Issue #17339 has been updated by mrkn (Kenta Murata).
Assignee set to mrkn (Kenta Murata)
Status changed from Open to Assigned
----------------------------------------
Feature #17339: Semantic grouping with BigDecimal#to_s
https://bugs.ruby-lang.org/issues/17339#change-89295
* Author: chumaltd (Takahiro Chuma)
* Status: Assigned
* Priority: Normal
* Assignee: mrkn (Kenta Murata)
----------------------------------------
# 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')` returns "_1 234 567_.0".
- With decimal, `BigDecimal('1234567.8901234').to_s('3F')` should return "1 234 567.890 123 4".
- Default behavior should be the above in long term.
- And/Or, it would be nice to have a pretty method name. I think #to_s('3F') has universal use cases like money calculation.
# Discussion
- International System of Units aka SI defines 3-digit-grouping on long numeric sequence.
https://www1.bipm.org/jsp/en/ViewCGPMResolution.jsp?CGPM=22&RES=10
- Original discussion in 1948 shows some example of 3-digit-grouping.
https://www1.bipm.org/utils/common/pdf/CGPM/CGPM9.pdf#page=117
# Summary
We want to have a natural format.
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>