作者robertshih (施抄)
看板b95902HW
标题[作业] compiler hw4
时间Sun May 31 14:47:45 2009
what do we do with floating point constants?
we can't store them, as we only have int types;
we can't compute/compare them in expressions involving int variables,
as conversion are not allowed.
the only thing left to do, it seems to me, is comparison between
floating constants expressions, ie something like this:
if(3.14159265^2.71828183 > 2.71828183^3.14159265)
/*do something*/
certainly i am reading into the spec correctly?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.91.80
1F:→ robertshih:我觉得你这样对英文不好的同学很失礼 05/31 16:55
2F:→ robertshih:sorry 05/31 16:56
3F:→ robertshih:不爽不要答 05/31 17:08