sbd-npm 1.1.72 → 1.1.73

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 +10 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.1.72",
3
+ "version": "1.1.73",
4
4
  "description": "Stock Big Data",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/util.js CHANGED
@@ -2372,6 +2372,16 @@ const Util = {
2372
2372
  $("#" + localStorage[tab_token] + "_div").removeClass("hide");
2373
2373
  },
2374
2374
 
2375
+ /**
2376
+ * 转为以万为单位的数值
2377
+ * @param digit
2378
+ * @param fraction
2379
+ * @returns {*|number}
2380
+ */
2381
+ to_ten_thousand: function (digit, fraction = 2) {
2382
+ return Util.to_float(digit / 10000, fraction);
2383
+ },
2384
+
2375
2385
  /**
2376
2386
  * 转为以亿为单位的数值
2377
2387
  * @param digit