是否有理由在添加时混合数字不正确? [英] is there a reason why to make mix numbers improper when adding?

查看:66
本文介绍了是否有理由在添加时混合数字不正确?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有理由在添加时混音数量不合适?


似乎在减去和添加时,加上减去整个

的数字和分数部分应该足够吗?我认为什么

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.com>在消息中写道

news:Xn ******************************* @ 199.45.49.1 1 ...

"sp0" <an*******@anonymous.com> 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.com>在消息中写道

news:Xn ******************************* @ 199.45.49.1 1 ...

"sp0" <an*******@anonymous.com> 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


这篇关于是否有理由在添加时混合数字不正确?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆