Hephaestus 发表于 2023-11-25 15:21
S=Time;
S=((S
Hephaestus 发表于 2023-11-25 15:21
S=Time;
S=((S
csmyldl 发表于 2023-11-25 20:50
这样确实也对,但很多程序中均用S=(Time*17)/1000;来计算,他们是如何实现的?但我的为何不能实现?这个 ...
coody_sz 发表于 2023-11-25 21:27
S=(Time*17)/1000; 中Time为16位,*17有可能溢出导致不对。你用32为的Time试试。
coody_sz 发表于 2023-11-25 21:27
S=(Time*17)/1000; 中Time为16位,*17有可能溢出导致不对。你用32为的Time试试。
欢迎光临 (http://www.51hei.com/bbs/) | Powered by Discuz! X3.1 |