Home  >  Q&A  >  body text

Is 500 a floating point type?

document.write(parseInt("500eps") "<br/>");


##The output of this line after extracting the floating point type is "500 ”, shouldn’t it be non? (Integers are integers and decimals are floating point. Is there any problem with this understanding?)


益伦益伦2604 days ago1468

reply all(3)I'll reply

  • 帅锅

    帅锅2017-09-05 12:16:08

    Yes~

    Come to my group to discuss and communicate~There are many experts in the group
    218289437

    reply
    0
  • ringa_lee

    ringa_lee2017-09-04 09:21:13

    parseInt is forced to convert to integer type, which will intercept the first few digits of the string, and eps will filter them out, so it is 500

    reply
    0
  • 微祥云

    微祥云2017-09-04 01:30:25

    No problem

    reply
    0
  • Cancelreply