CRM-14839 Support Float data in CiviCRM Views

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.5
    • Fix Version/s: 4.4.11, 4.5
    • Labels:
      None

      Description

      If a custom value (or other float?) is displayed from a Drupal View and has a value of eg 5.01, it will display in Views as 5.00999...8

      eg https://dl.dropbox.com/s/9q18t7ovlxpz3xh/Screenshot%202014-06-04%2010.21.03.png

        Attachments

          Activity

          [CRM-14839] Support Float data in CiviCRM Views
          Chris Burgess added a comment -

          https://gist.github.com/xurizaemon/13307b66a0d5841f0e9c#file-fuz-7195-patch

          A few lines down, a few months later I noticed that Integers misbehave too - a NULL value is displayed as 0.

          In that case I did this https://gist.github.com/xurizaemon/13307b66a0d5841f0e9c#file-fuz-7195-patch but didn't PR it yet because it hasn't been reviewed fully internally.

          Eileen McNaughton added a comment -

          Chris - probably better to open a new issue if there is one...

            People

            • Assignee:
              Chris Burgess
              Reporter:
              Chris Burgess

              Dates

              • Created:
                Updated:
                Resolved: