Differences between CINT and INT

xiaoxiao2021-03-06  68

Today, the writer was confused by CINT and INT, and finally checked the document and conducted some digital tests, and concluded:

CINT will perform the number of even numbers of the rounded, that is, when the fraction is 0.5xxxx, it takes the closer to X.5xx even.

Such as cint (0.5) = 0; cint (1.5) = 2; CINT (2.5) = 2; CINT (3.5) = 4

And INT is a finishing function, which will remove the decimal point. Such as int (1.5) = 1 ... autonomous blog: http://www.ylhd.com/aa7643/dds_blog/

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

New Post(0)