Delphi6 question 2

zhaozj2021-02-08  219

If an INT64 type variable is used as a parameter (eg,: ln, sin et al), if the floating point number is parameter, the report type does not match, not automatic conversion, such as the following example

VAR x: int64; y: extended; begin x: = 1; y: = ln (x);

Solution: Add 0.0 to the parameter

VAR x: int64; y: extended; begin x: = 1; y: = ln (x 0.0); end; // rock // Repost Please keep this information

转载请注明原文地址:https://www.9cbs.com/read-2788.html

New Post(0)