When trying to use a Formatted Decimal in a Views Math expression I get the following error:

user warning: unexpected ',' in /usr/local/apache2/htdocs/drupal6/sites/all/modules/ctools/includes/math-expr.inc on line 357.

While the error message is misleading, I am pretty sure that CTools is choking on the comma separators in the Formatted Decimal.

Is this a bug or "working as designed"?

Cheers,
Kevin

Comments

tinker’s picture

I don't know views math but normally when you use a formatted number in views you can select the render format. I am assuming you select a field that contains a numeric value. The formatted number stored value does not have formatting (beyond decimal point) so if you use the 'unformatted' setting you should be good.