我可以比较两个分数,如果两个分母的幂为2 [英] can I compare two fractions if both have denominator with power of 2
问题描述
我知道比较两个真实是不可能的,但是对于具有2的分母幂的真实是真的吗?这个王的平等总是返回真
if(3/4。== 6/8。){}
这种表达式应该始终评估为 I know it's not "possible" to compare two real, but is it true for real which have denominator power of 2 Is equality of this king always return true
This kind of expression should always evaluate to 这篇关于我可以比较两个分数,如果两个分母的幂为2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋! true
,有一些注意事项:
if( 3/4. == 6/8. ) {}
true
, with a few caveats: