Truncate
Bruce Easton
bruce at stn.com
Thu Dec 12 08:50:15 PST 2013
Also, Matt, in your solution you used this twice:
::wa=wa+50
I'm assuming you meant ::wa=wa+"50"
On 12/12/13 11:40 AM, Kenneth Brody wrote:
> 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"
>
> [...]
>
More information about the Filepro-list
mailing list