home *** CD-ROM | disk | FTP | other *** search
- *******************
-
- FUNCTION Places
-
- PARAMETERS _thenumber, _places
-
- IF PCOUNT() != 2
- RETURN(0)
- ELSEIF _places < 1
- RETURN(0)
- ENDIF
-
- _places = INT(_places)
-
- PRIVATE _base
-
- _base = INT(_thenumber) / (10 * _places)
-
- _base = _base - INT(_base)
-
- RETURN( INT(_base * (10 * _places)))