From: Zoltan B. <zb...@du...> - 2006-03-15 22:10:15
|
Hi, I wanted to display a percent computed from two fields. This doesn't work: str(val(field1)/val(field)*100.0,3,2) Although this does work: str((val(field1)/val(field))*100.0,3,2) Note the extra parentheses. This is what I got in the terminal (RLIB=20 didn't crashed, though): RLIB EXPERIENCED A FATAL MATH ERROR WHILE TRYING TO PREFORM THE=20 FOLLOWING OPERATION: str * Error on Line 86: The Expression Was=20 [str(val(field1)/val(field2)*100.0,3,2)] * DATA TYPES ARE [UNKNOWN] [UNKNOWN] [UNKNOWN] PCODE Execution Error: str( Didn't Work PCODE Execution Error: [str(val(field2)/val(field2)*100.0,3,2)] on line [= 86] RLIB can't parse A / B * C but it can parse (A / B) * C. Is it documented somewhere? E.g. explicit parentheses are not only needed but required? Best regards, Zolt=E1n B=F6sz=F6rm=E9nyi |