Skip to content

xchg::Explicit tagging doesn't make "0.99" roundtrip when decimal precision is 1 #9

@catb0t

Description

@catb0t
$ sidef -P1 tests/06_xchg_tagging.sf 
{
   "l" : {
      "__XT" : "!B!Array.Array",
      "__XS" : "!B!String.String",
      "__XV" : [
         {
            "__XV" : "0.99"
         },
         {
            "__XV" : "1.0123123123123123123123"
         }
      ]
   },
   ...
}

Hash(
    "l" => Hash(
        "__XS" => "!B!String.String",
        "__XT" => "!B!Array.Array",
        "__XV" => [Hash("__XV" => 99/100), Hash("__XV" => 10123123123123123123123/10000000000000000000000)]
    ),
    ...
)
assert_eq(Hash(
    "l" => ["1e0", "1e0"],
    ...
), Hash(
    "l" => ["0.99", "1.0123123123123123123123"],
    ...
)) failed at tests/06_xchg_tagging.sf line 94

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions