【问题标题】:Calc with format number计算格式号
【发布时间】:2019-02-03 14:22:44
【问题描述】:

我在格式化数字时遇到问题。我得到的是字符串连接而不是数字总和。

我附上了问题的截图。

请帮帮我。谢谢。

https://drive.google.com/open?id=1vv5doL2QByU_54kPDoKFRvqj6aaSRxbg

https://drive.google.com/open?id=1-BktFl_j9H3tzKGysDoDlr4nB7cDVEGu

我需要 5 + 5 + 5 的总和,但结果是 555 而不是 15。

谢谢

【问题讨论】:

    标签: numbers format podio calc


    【解决方案1】:

    当您加入 Number 数组时,它将被转换为字符串。请更新如下

    var total = @All of Suma OD.reduce(function(a, b) { return a + b; }, 0);
    total - [Your other calculation logics]
    

    【讨论】:

      猜你喜欢
      • 2012-12-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-14
      • 2011-05-28
      • 1970-01-01
      相关资源
      最近更新 更多