Truncate

Kenneth Brody kenbrody at spamcop.net
Thu Dec 12 08:40:25 PST 2013


On 12/12/2013 11:13 AM, Matt Sherrill wrote:
> With the help of Ken White, Kenneth Brody and Robert T. Repko, I was able
> to find a solution to my problem.

... "46949.500" --> "46900"
... "46959.500" --> "47000"

Now that you have clarified that you actually mean "round" and not
"truncate", your code can be greatly simplified by simply allowing filePro
to do the rounding for you:

     result = doedit(number/"100",".0","10") * "100"

[...]

-- 
Kenneth Brody


More information about the Filepro-list mailing list