Comparison of numerical types in crystal reports

xiaoxiao2021-03-06  105

Use Round (X, 4); both sides must be; 4: It is a decimal point number;

I used to use this directly to compare if (fTemp = 0.0042) THEN, can't be executed;

It is best to modify this: just OK:

IF (Round (fTEMP, 4) = ROUND (0.0042, 4)) then ....

>> The most dizzy thing happened. IF Round ({qr_cust_label_ccl_qa / .fparao}, 4) = Round (0.0023, 4) Then 0.002 is not good, it is strange, I don't know why; then modify this: if CSTR ( {Qr_cust_label_ccl_qa / .fparao}, 4) = cstr (0.0023, 4) Then 0.002ok!

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

New Post(0)