Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6532739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:02:27+00:00 2026-05-25T10:02:27+00:00

I was just looking at JavaScript Timing Events , and there it says that

  • 0

I was just looking at JavaScript Timing Events, and there it says that “The second parameter indicates how many milliseconds from now you want to execute the first parameter.“

Now, I know that in JavaScript, both floating point and integers are of type Number, and so syntactically I can enter a floating point value, e.g. ‘setTimeout("javascript statement",4.5);‘ – however, will JavaScript even attempt to create a delay of 4.5 milliseconds there; or will it just automatically truncate to integer and go on?

Thanks in advance for any answers,
Cheers!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T10:02:28+00:00Added an answer on May 25, 2026 at 10:02 am

    This is almost certainly browser-dependent (I haven’t checked it’s not part of the language spec), but typically this value is stored in a 32-bit signed int, so would only accept integer values between 0 and 2^31 - 1.

    Related:

    • Why does setTimeout() "break" for large millisecond delay values?
    • 7.3 Timers — HTML Standard
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just looking on resources that break down how frames per second work. I know
To debug some JavaScript code, I am looking for JavaScript code (preferably just js,
Just looking for the first step basic solution here that keeps the honest people
Basically just looking to see if you can capture an image from the webcam
I'm just looking for some advice. I'm creating a website that offers (at least)
I've just recently started looking into the details of which events fire when in
Is there a package that helps me benchmark JavaScript code? I'm not referring to
I am looking for a javascript library that takes unix timestamp string as an
I have just started looking at javascript so hopefully this will be something simple.
So, I have many lines of Javascript codes which is quite unorganized right now.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.