做了个四则运算的计算器,,可是不知道这个式子的结果

2019-07-20 10:12发布



SCREENSHORT_100.jpg 搜狗截图20180101211931.jpg 搜狗截图20180101212012.jpg
3.456+(4.5+5.5)*0.784-0.5+(4.44*(9.999+2*(-2.2-442.34*08.76540/ 02.34563+33.98)*33333+5.456+3.210)*3.33)

第二个图是一个在线计算的
第三个图是参考别人的算法写的准备调通之后再移植到单片机
哪位大哥帮我算下上面的式子计算结果是多少
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
5条回答
1026481385
2019-07-20 15:12
* “*/取表达式” | “-2.2-442.34*08.76540/02.34563+33.98”
* “*/取左边数” | “-2.2-442.34*08.76540/02.34563+33.98” | 442.340000 | 6
* “*/取运算符” | “-2.2-442.34*08.76540/02.34563+33.98” | “*”
* “*/取右边数” | “-2.2-442.34*08.76540/02.34563+33.98” | 8.765400 | 21
* “*/取运算值” | “-2.2-3877.28703600000/02.34563+33.98” | “442.34*8.7654=3877.287036”
* “/*  ///////////////////////////////////////////////////////////////////////////////////////////”
* “*/取左边数” | “-2.2-3877.28703600000/02.34563+33.98” | 3877.287036 | 6
* “*/取运算符” | “-2.2-3877.28703600000/02.34563+33.98” | “/”
* “*/取右边数” | “-2.2-3877.28703600000/02.34563+33.98” | 2.345630 | 31
* “*/取运算值” | “-2.2-1652.98322241800+33.98” | “3877.287036/2.34563=1652.983222418”
* “/*  ///////////////////////////////////////////////////////////////////////////////////////////”
* “+-取表达式” | “-2.2-1652.98322241800+33.98”
* “+-取左边数” | “-2.2-1652.98322241800+33.98” | -2.200000 | 1
* “+-取运算符” | “-2.2-1652.98322241800+33.98” | “-”
* “+-取右边数” | “-2.2-1652.98322241800+33.98” | 1652.983222 | 22
* “+-取运算值” | “-1655.18322241800+33.98” | “-2.2-1652.983222418=-1655.183222418”
* “+-  ///////////////////////////////////////////////////////////////////////////////////////////”
* “+-取左边数” | “-1655.18322241800+33.98” | -1655.183222 | 1
* “+-取运算符” | “-1655.18322241800+33.98” | “+”
* “+-取右边数” | “-1655.18322241800+33.98” | 33.980000 | 23
* “+-取运算值” | “-1621.203222418008” | “-1655.183222418+33.98=-1621.203222418”
* “+-  ///////////////////////////////////////////////////////////////////////////////////////////”
* “表达式 结果 ” | -1621.203222
* “括号表达式” | “9.999+2*-1621.203222418008*33333+5.456+3.210”
* “括号///////////////////////////////////////////////////////////////////////////////////////////”
* “*/取表达式” | “9.999+2*-1621.203222418008*33333+5.456+3.210”
* “*/取左边数” | “9.999+2*-1621.203222418008*33333+5.456+3.210” | 2.000000 | 7
* “*/取运算符” | “9.999+2*-1621.203222418008*33333+5.456+3.210” | “*”
* “*/取右边数” | “9.999+2*-1621.203222418008*33333+5.456+3.210” | -1621.203222 | 27
* “*/取运算值” | “9.999+-3242.40644483600*33333+5.456+3.210” | “2*-1621.203222418=-3242.406444836”
* “/*  ///////////////////////////////////////////////////////////////////////////////////////////”
* “*/取左边数” | “9.999+-3242.40644483600*33333+5.456+3.210” | 3242.406445 | 8
* “*/取运算符” | “9.999+-3242.40644483600*33333+5.456+3.210” | “*”
* “*/取右边数” | “9.999+-3242.40644483600*33333+5.456+3.210” | 33333.000000 | 30
* “*/取运算值” | “9.999+-108079134.02570000000+5.456+3.210” | “3242.406444836*33333=108079134.0257”
* “/*  ///////////////////////////////////////////////////////////////////////////////////////////”
* “+-取表达式” | “9.999+-108079134.02570000000+5.456+3.210”
* “+-取左边数” | “9.999+-108079134.02570000000+5.456+3.210” | 9.999000 | 1
* “+-取运算符” | “9.999+-108079134.02570000000+5.456+3.210” | “+”
* “+-取右边数” | “9.999+-108079134.02570000000+5.456+3.210” | -108079134.025700 | 29
* “+-取运算值” | “-108079124.02670000000+5.456+3.210” | “9.999+-108079134.0257=-108079124.0267”
* “+-  ///////////////////////////////////////////////////////////////////////////////////////////”
* “+-取左边数” | “-108079124.02670000000+5.456+3.210” | -108079124.026700 | 1
* “+-取运算符” | “-108079124.02670000000+5.456+3.210” | “+”
* “+-取右边数” | “-108079124.02670000000+5.456+3.210” | 5.456000 | 29
* “+-取运算值” | “-108079118.57070000000+3.210” | “-108079124.0267+5.456=-108079118.5707”
* “+-  ///////////////////////////////////////////////////////////////////////////////////////////”
* “+-取左边数” | “-108079118.57070000000+3.210” | -108079118.570700 | 1
* “+-取运算符” | “-108079118.57070000000+3.210” | “+”
* “+-取右边数” | “-108079118.57070000000+3.210” | 3.210000 | 28
* “+-取运算值” | “-108079115.360700000000” | “-108079118.5707+3.21=-108079115.3607”
* “+-  ///////////////////////////////////////////////////////////////////////////////////////////”
* “表达式 结果 ” | -108079115.360700
* “括号表达式” | “4.44*-108079115.360700000000*3.33”
* “括号///////////////////////////////////////////////////////////////////////////////////////////”
* “*/取表达式” | “4.44*-108079115.360700000000*3.33”
* “*/取左边数” | “4.44*-108079115.360700000000*3.33” | 4.440000 | 1
* “*/取运算符” | “4.44*-108079115.360700000000*3.33” | “*”
* “*/取右边数” | “4.44*-108079115.360700000000*3.33” | -108079115.360700 | 29
* “*/取运算值” | “-479871272.20150000000*3.33” | “4.44*-108079115.3607=-479871272.2015”
* “/*  ///////////////////////////////////////////////////////////////////////////////////////////”
* “*/取左边数” | “-479871272.20150000000*3.33” | -479871272.201500 | 1
* “*/取运算符” | “-479871272.20150000000*3.33” | “*”
* “*/取右边数” | “-479871272.20150000000*3.33” | 3.330000 | 27
* “*/取运算值” | “-1597971336.431000000003” | “-479871272.2015*3.33=-1597971336.431”
* “/*  ///////////////////////////////////////////////////////////////////////////////////////////”
* “+-取表达式” | “-1597971336.431000000003”
* “表达式 结果 ” | -1597971336.431000
* “括号表达式” | “4.5+5.5”
* “括号///////////////////////////////////////////////////////////////////////////////////////////”
* “*/取表达式” | “4.5+5.5”
* “+-取表达式” | “4.5+5.5”
* “+-取左边数” | “4.5+5.5” | 4.500000 | 1
* “+-取运算符” | “4.5+5.5” | “+”
* “+-取右边数” | “4.5+5.5” | 5.500000 | 7
* “+-取运算值” | “10.000000000005” | “4.5+5.5=10”
* “+-  ///////////////////////////////////////////////////////////////////////////////////////////”
* “表达式 结果 ” | 10.000000
* “括号表达式” | “3.456+10.000000000005*0.784-0.5+-1597971336.431000000003”
* “括号///////////////////////////////////////////////////////////////////////////////////////////”
* “*/取表达式” | “3.456+10.000000000005*0.784-0.5+-1597971336.431000000003”
* “*/取左边数” | “3.456+10.000000000005*0.784-0.5+-1597971336.431000000003” | 10.000000 | 7
* “*/取运算符” | “3.456+10.000000000005*0.784-0.5+-1597971336.431000000003” | “*”
* “*/取右边数” | “3.456+10.000000000005*0.784-0.5+-1597971336.431000000003” | 0.784000 | 28
* “*/取运算值” | “3.456+7.84000000000-0.5+-1597971336.431000000003” | “10.00000000001*0.784=7.840000000004”
* “/*  ///////////////////////////////////////////////////////////////////////////////////////////”
* “+-取表达式” | “3.456+7.84000000000-0.5+-1597971336.431000000003”
* “+-取左边数” | “3.456+7.84000000000-0.5+-1597971336.431000000003” | 3.456000 | 1
* “+-取运算符” | “3.456+7.84000000000-0.5+-1597971336.431000000003” | “+”
* “+-取右边数” | “3.456+7.84000000000-0.5+-1597971336.431000000003” | 7.840000 | 20
* “+-取运算值” | “11.29600000000-0.5+-1597971336.431000000003” | “3.456+7.84=11.296”
* “+-  ///////////////////////////////////////////////////////////////////////////////////////////”
* “+-取左边数” | “11.29600000000-0.5+-1597971336.431000000003” | 11.296000 | 1
* “+-取运算符” | “11.29600000000-0.5+-1597971336.431000000003” | “-”
* “+-取右边数” | “11.29600000000-0.5+-1597971336.431000000003” | 0.500000 | 19
* “+-取运算值” | “10.79600000000+-1597971336.431000000003” | “11.296-0.5=10.796”
* “+-  ///////////////////////////////////////////////////////////////////////////////////////////”
* “+-取左边数” | “10.79600000000+-1597971336.431000000003” | 10.796000 | 1
* “+-取运算符” | “10.79600000000+-1597971336.431000000003” | “+”
* “+-取右边数” | “10.79600000000+-1597971336.431000000003” | -1597971336.431000 | 39
* “+-取运算值” | “-1597971325.635000000003” | “10.796+-1597971336.431=-1597971325.635”
* “+-  ///////////////////////////////////////////////////////////////////////////////////////////”
* “表达式 结果 ” | -1597971325.635000

一周热门 更多>