作者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