Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私の関数の結果はこのようなものです.0.702568.しかし、0.70257.iはラウンド関数を使用できません。この問題の解決策はありますか?
手品を使用して。x数値をkth小数点以下に丸めたい場合は、次のようにします
x
kth
xrk = round(x*10^k)/10^k;
あなたのインスタンスk = 5で。
k = 5