Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

90
Views
Type check between integer and float type

what is maximum precision check we do for float and integer ?

 0 === 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 

true // output 
about 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Looking at:

> Number.MIN_VALUE
< 5e-324

Versus:

> '0.000--etc--0001'.length
< 487

We can see that your number is smaller than the allowable minimum non-zero float, so it gets rounded down to zero, making the expression effectively:

> 0 === 0.0
< true
about 4 years ago · Santiago Trujillo Report

0

Javascript, Typescript has the only type of Number. By default, you can not declare float type. But you check the float value. I think you have the answer here. here

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!