IBM Support

PM78423: dojo.number.round and dojox.math.round return incorrect results on Microsoft Internet Explorer 6,7 and 8

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The second number after decimal point is shown differently
    between Microsoft Internet Explorer and Mozilla Firefox. It
    seems that the result of rounding the value to two decimal
    places is different between the two browsers.
    
    They are not using JavaScript standard rounding
    (Number.toFixed()), but using the following Dojo round()
    function.
    
    i.e.
    dojo.number.round(0.95, 0) and dojox.math.round(0.95, 0) both
    return 2 instead of 1.
    
    The open source ticket is here:
    http://trac.dojotoolkit.org/ticket/16411.
    

Local fix

  • LOCAL FIX:
    None.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Feature Pack for Web 2.0 and Mobile  *
    *                  using Dojo's dojo.number.round or           *
    *                  dojox.math.round.                           *
    ****************************************************************
    * PROBLEM DESCRIPTION: dojo.number.round  and                  *
    *                      dojox.math.round return incorrect       *
    *                      results on IE 6,7 and 8.                *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    dojo.number.round and dojox.math.round return  incorrect
    results on Microsoft Internet Explorer 6,7 or 8.
    Example:  dojo.number.round(0.95, 0) returns 2 instead of 1.
    More details here: http://trac.dojotoolkit.org/ticket/16411.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PM78423

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-12-04

  • Closed date

    2013-01-16

  • Last modified date

    2013-01-16

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WAS WEB 2.0 FEA

  • Fixed component ID

    5724J0852

Applicable component levels

  • R700 PSY

       UP

  • R800 PSY

       UP

  • R850 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"850","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
10 February 2022