Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

fix(numberFilter): format large numbers correctly #8705

Closed

Commits on Sep 5, 2014

  1. fix(numberFilter): format large numbers correctly

    format large number to correct form instead of NAN.00 currently.
    in previous code when first time we add the exponent with fractionSize
    (number.toString()+'e'+fractionsize)
     and then convert it to an integer using ,
    +(number.toString()+'e'+fractionsize)
    when the number is very large and number will be represented by using exponent. for example 12345868059685210000 will be represented by 1.234586805968521e+21. as getting string in exponent is not handles, we get the number as NAN.
    Handle when the number is being represented in exponent form, by adjusting exponent of number with fraction size:
    
    Closes angular#8674
    gauravaror committed Sep 5, 2014
    Configuration menu
    Copy the full SHA
    306f5b7 View commit details
    Browse the repository at this point in the history