Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: tableComponent: Wrong sign for values between -1 and 0

  1. #1
    Join Date
    Apr 2010
    Posts
    5

    Default tableComponent: Wrong sign for values between -1 and 0

    Hi all,

    We just ran into a bug which happens when you use the tableComponent.

    Values between -1 and 0 will be displayed with the wong sign.
    Example:

    Value: -0.5
    Displayed: 0.5

    The reason is: the "sprintf" function in Dashboard.js uses "ParseInt" to identify whether the value is negative.

    Solution:

    Replace

    negative: parseInt(arguments[convCount]) < 0 ? true : false,

    with

    negative: parseFloat(arguments[convCount]) < 0 ? true : false,

    in the Dashboard.js file.

  2. #2
    Join Date
    Jul 2007
    Posts
    2,498

    Default

    Dang! Jira case, please, and thanks for reporting it!
    Pedro Alves
    Meet us on ##pentaho, a FreeNode irc channel

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.