sbd-npm 1.3.86 → 1.3.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/util.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.3.86",
3
+ "version": "1.3.88",
4
4
  "description": "Stock Big Data",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/util.js CHANGED
@@ -2661,7 +2661,7 @@ const Util = {
2661
2661
  if ($.isArray(match_arr) && match_arr[0]) {
2662
2662
  return match_arr[0];
2663
2663
  }
2664
- return Util.filter_chinese(td_val).replace("%", "");
2664
+ return td_val.replace("%", "");
2665
2665
  }
2666
2666
  }
2667
2667
  }
@@ -3082,6 +3082,7 @@ const Util = {
3082
3082
  rate_val = -rate_val
3083
3083
  }
3084
3084
  }
3085
+ rate_val = rate_val === 0 ? "0.00" : Util.to_float(rate_val, 2);
3085
3086
  return "<b title='" + (year_price + " - " + price) + "' class='" + cls + "'>" + plus_sign + rate_val + "%</b>";
3086
3087
  },
3087
3088