答案:var A,P: integer; begin A:= 3; P:= Round( Sqrt9(0.5) * A ); end; //Round用的是银行家算法来四舍五入的,简单取整的话,用trunc函数
上一个:delphi中输入一个汉字,如何编程序自动能够找到该汉字的机内码下一个:如何设计delphi程序,用来读取、搜索和处理TXT文件中的数据,然后将处理过的数据显示在delphi的界面上。