Shane F. Carr

Results 1877 comments of Shane F. Carr

What I meant was, the domain of real numbers is approximated by a signed decimal, but an unsigned decimal approximates only half of the domain.

> Yes, but my original argument is that any function defined in ℝ is also defined in ℝ⁺. I can see your perspective on that point > This is fair,...

One more thing: ECMA-402 actually defines an Unsigned Rounding Mode enumeration https://tc39.es/ecma402/#sec-getunsignedroundingmode It uses different names: - Infinity - Zero - Half-Infinity - Half-Zero - Half-Even So one option is...

Should we just export a single FixedDecimal type on FFI that does everything, and formatters that want unsigned can return an error if the value is negative? The composed types...

We also need to decide which formatters correspond to which composite types.

A few more notes of rationalization: - `FixedDecimalFormatter::format` has long supported signed values. Aside from the `fixed_decimal` composition work, we would have likely agreed that it was fine for `FixedDecimal`...

idea... ```rust pub struct WithNaN(Option); impl Writeable for WithNaN { pub fn write_to(&self, sink) { match self { Some(x) => x.write_to(), None => sink.write_str("NaN"), } } } ``` And then...