var __Ox957f2 = ["value", "bjr", "getElementById", "gdh", "请输入数字", "jg", "toFixed","PI", "undefined", "log"]; function is_float(_0xac82x15){var _0xac82x20=/^(-?\d+)(\.\d+)?$/;if(!_0xac82x20['test'](_0xac82x15)){return false};return true} function showerror(e){ toastr.warning(e); } function calc() { var _0x7293x2 = document[__Ox957f2[0x2]](__Ox957f2[0x1])[__Ox957f2[0x0]]; var _0x7293x3 = document[__Ox957f2[0x2]](__Ox957f2[0x3])[__Ox957f2[0x0]]; if (!is_float(_0x7293x2) || !is_float(_0x7293x3)) { showerror(__Ox957f2[0x4]); return false } else { _0x7293x2 = parseFloat(_0x7293x2); _0x7293x3 = parseFloat(_0x7293x3); document[__Ox957f2[0x2]](__Ox957f2[0x5])[__Ox957f2[0x0]] = (1/ 3* Math[__Ox957f2[0x7]] * _0x7293x2 * _0x7293x2 * _0x7293x3)[__Ox957f2[0x6]](4) } }