search

Home  >  Q&A  >  body text

2222222222222222222222-222222222222222222200 = 0 in js - Stack Overflow

222222222222222222222-222222222222222222200 How to get the correct result when 0 is output in the console panel?

怪我咯怪我咯2819 days ago867

reply all(4)I'll reply

  • PHP中文网

    PHP中文网2017-05-19 10:38:07

    No need to count, there are 21 people in total;
    The appearance of the entire list has been lowered by half a street due to this problem of the original poster;

    reply
    0
  • 为情所困

    为情所困2017-05-19 10:38:07

    The double type can only store 14 to 15 significant figures, and the excess can only be rounded (five is rounded according to certain rules)

    reply
    0
  • PHPz

    PHPz2017-05-19 10:38:07

    Integers (without decimal point or exponent notation) can be up to 15 digits.
    Save the two strings as an array
    Add and subtract one bit one by one, subtract 1 for the next bit of a negative number
    Then concatenate the arrays

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-19 10:38:07

    . . . . . . . . . .
    FAQ.
    http://ecma-international.org...
    Hope it can help you

    reply
    0
  • Cancelreply