From: Bob D. <bd...@si...> - 2006-03-16 15:16:01
|
Ok.. This is fixed in CVS. On Wed, 2006-03-15 at 23:10 +0100, Zoltan Boszormenyi wrote: > Hi, >=20 > I wanted to display a percent computed from two fields. >=20 > This doesn't work: >=20 > str(val(field1)/val(field)*100.0,3,2) >=20 > Although this does work: >=20 > str((val(field1)/val(field))*100.0,3,2) >=20 > Note the extra parentheses. This is what I got in the terminal (RLIB=20 > didn't crashed, though): >=20 > 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] >=20 > 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? >=20 > Best regards, > Zolt=C3=A1n B=C3=B6sz=C3=B6rm=C3=A9nyi >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting lang= uage > that extends applications into web and mobile media. Attend the live we= bcast > and join the prime developer group breaking into this new coding territ= ory! > http://sel.as-us.falkag.net/sel?cmd____________________________________= ___________ > Rlib-devel mailing list > Rli...@li... > https://lists.sourceforge.net/lists/listinfo/rlib-devel |