大尾数格式到十进制转换

时间:2019-06-01 09:56:38

标签: javascript

如何在javascript中将大Endian格式转换为十进制格式?

一些大的Endian格式数据:

{   "wh": "0:0:0:0:0:251:132:0",
    "vry": "0:0:27:84",
    "vyb": "0:0:0:0",
    "vbr": "67:114:33:235",
    "vrn": "67:114:28:164",
    "vyn": "0:0:0:0",
    "vbn": "0:0:0:0",
    "ir": "0:0:0:0",
    "iy": "0:0:0:0",
    "ib": "0:0:0:0",
    "kva":"66:158:57:154",
    "pfr":"63:116:4:72",
    "var":"0:0:0:0:136:28:56:100",
    "me": "vk"
}

期望值:数据



  { wh: 16.483328,
    vry: 0,
    vyb: 0,
    vbr: 242,
    vrn: 242,
    vyn: 0,
    vbn: 0,
    ir: 0,
    iy: 0,
    ib: 0,
    kva: 79,
    pfr: 0.953125,
    var: 2283.55082 } 

0 个答案:

没有答案