var price=1.163; var buyPrice=price-(price*0.02); var sellPrice=price+(price*0.02); console.log("本次买入价格"+buyPrice); console.log("本次卖出价格"+sellPrice);