We should provide method get_value() for class views_handler_field_math because other module will use this raw (float) value to do other things.
Because class views_handler_field_math extend class views_handler_field_numeric, we should remove method render() and inherit it from class views_handler_field_numeric.

Class views_handler_field_numeric will call method get_value() and render this raw value to formatted number.
http://cgit.drupalcode.org/views/tree/handlers/views_handler_field_numeric.inc#n109

Issue fork views-2451759

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

fiftyz made their first commit to this issue’s fork.

SilviuChingaru’s picture

Status: Active » Needs review
FileSize
2.06 KB

Tests with patch.

DamienMcKenna’s picture

Title: Provide method get_value() for views_handler_field_math. » Provide method get_value() for views_handler_field_math
Category: Bug report » Feature request
Issue tags: -math expression views

This is a feature request rather than a bug report.