sbd-npm 1.3.86 → 1.3.87

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 +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.3.86",
3
+ "version": "1.3.87",
4
4
  "description": "Stock Big Data",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/util.js CHANGED
@@ -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