Probably nothing simpler than what you did, since PowerPro is deliberately typeless (ie you cannot declare a variable to hold float numbers) and also is designed to do integer arithmetic when both operands are plain integers, both for backwards compatibility and similarly to C.
There is stringtofloat operator, but I don't know if it would help in your case. Why can't you enter the expression initially with ".0"? --- In [email protected], sgp <acs322...@...> wrote: > > How to force powerpro to evaluate an arbitrary, apriori unknown numerical > expression using floating > point math? > I came out with a solution, which is to use a regex replacement to stick a > ".0" after the first integer (if any) > found in the expression. It seems to work, but it also seems more complicated > than it should be. Isn't there > a simpler solution that I overlooked?
