home *** CD-ROM | disk | FTP | other *** search
- *******************
-
- FUNCTION Compare
-
- PARAMETERS _numb1, _numb2
-
- * This function is designed to test two numbers
- * that have gone through extensive numeric calculations
- * and show that they are indeed, equal.
-
- PRIVATE _olddec, _return
-
- IF PCOUNT() != 2
- RETURN(.F.)
- ELSEIF TYPE("_numb1") + TYPE("_numb2") != "NN"
- RETURN(.F.)
- ENDIF
- _olddec = Setdecimal()
- SET DECIMALS TO 20
- _return = ( STR(_numb1) = STR(_numb2) )
- SET DECIMALS TO _olddec
- RETURN(_return)
-
- * End of File