是否有理由在添加时混合数字不正确?

编程入门 行业动态 更新时间:2024-10-22 19:32:19
本文介绍了是否有理由在添加时混合数字不正确?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

有没有理由在添加时混音数量不合适? 似乎在减去和添加时,加上减去整个 的数字和分数部分应该足够吗?我认为什么

Is there a reason why to make mix numbers improper when adding? It seems when subtracting and adding, adding a subtracting the whole numbers and fraction parts should be sufficient? what''ch think

推荐答案

" sp0" <一个******* @ anonymous>在消息中写道 news:Xn ******************************* @ 199.45.49.1 1 ... "sp0" <an*******@anonymous> wrote in message news:Xn*******************************@199.45.49.1 1... 有没有理由在添加时混合数字不正确? 在减去和添加时,添加一个减去整个数字的数字和分数部分应该足够吗?什么'想' Is there a reason why to make mix numbers improper when adding? It seems when subtracting and adding, adding a subtracting the whole numbers and fraction parts should be sufficient? what''ch think

请给出你的意思的具体代码示例。 我不明白你的问题。 -Mike

Please give a specific code example of what you mean. I don''t understand your questions. -Mike

请提供具体的代码示例。我不明白你的问题。 Please give a specific code example of what you mean. I don''t understand your questions.

temp.whole = whole - obj2.whole; temp.numer =((整个* denom + numer)* obj2.denom) - ((obj2.whole * obj2.denom + obj2.numer)* denom); temp.denom = denom * obj2.denom; temp.reduce(); 减去整体而不是使两个部分不合适

temp.whole = whole - obj2.whole; temp.numer = ((whole * denom + numer)*obj2.denom) - ((obj2.whole * obj2.denom + obj2.numer)*denom); temp.denom = denom * obj2.denom; temp.reduce(); subtracting the wholes instead of making both fractions improper

" sp0" <一个******* @ anonymous>在消息中写道 news:Xn ******************************* @ 199.45.49.1 1 ... "sp0" <an*******@anonymous> wrote in message news:Xn*******************************@199.45.49.1 1... 请给出具体的代码示例。我不明白你的问题。 Please give a specific code example of what you mean. I don''t understand your questions.

temp.whole = whole - obj2.whole; temp.numer =((full * denom + numer)* obj2.denom) - ((obj2.whole * obj2.denom + obj2.numer)* denom); temp.denom = denom * obj2.denom; temp.reduce(); 减去整体而不是使两个分数不合适

temp.whole = whole - obj2.whole; temp.numer = ((whole * denom + numer)*obj2.denom) - ((obj2.whole * obj2.denom + obj2.numer)*denom); temp.denom = denom * obj2.denom; temp.reduce(); subtracting the wholes instead of making both fractions improper

那么您会提出其他方法吗?它是否会产生 正确的结果? -Mike

So what other method would you propose? Does it produce correct results? -Mike

更多推荐

是否有理由在添加时混合数字不正确?

本文发布于:2023-11-29 08:34:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1645883.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:不正确   有理由   数字

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!