Announcement

Collapse
No announcement yet.

[CLOSED] [#992] [1.11] Sum of items in a list of type decimal returns string

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    [CLOSED] [#992] [1.11] Sum of items in a list of type decimal returns string

    The expected output for the following code is decimal value 14.8333 but it returns a string value "014.8333"

    using Bridge.Html5;
    using System.Collections.Generic;
    using System.Linq;
    
    namespace Test
    {
        public class App
        {
            [Ready]
            public static void Main()
            {
                List<decimal> items = new List<decimal>();
                items.Add(14.4833M);
    
                decimal result = items.Sum(b => b);
    
                Console.Log(result);
            }
        }
    }

    #2
    I was able to reproduce the issue with the following sample:

    http://live.bridge.net/#1625e138fd8634c66d0f

    We will try to fix right away.

    Comment


      #3
      Issue #992 has been created to track this defect:

      https://github.com/bridgedotnet/Bridge/issues/992

      Comment


        #4
        This issue appears to be solved in the latest release (v1.11). We've retested and an object is returned.

        Issue #992 has been closed.

        Comment


          #5
          Ok Thanks!!

          Comment

          Working...
          X