Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance.now() gives automatic rounded values on Firefox #1891

Open
Palloxin opened this issue Sep 24, 2024 · 3 comments
Open

Performance.now() gives automatic rounded values on Firefox #1891

Palloxin opened this issue Sep 24, 2024 · 3 comments

Comments

@Palloxin
Copy link

Palloxin commented Sep 24, 2024

check it here
https://jsfiddle.net/xtop6qv4/

performance.now() rounds automatically every value it can give. I need to know its decimals, but no idea how to set it.
Make the jsfiddle not interferee with it.

Details

-Tried on Firefox 130. Windows 10. It works fine on Chrome.
-same problem with Date.now()
-i tried with toFixed(5) but just gives numbers like 5.00000 6.00000 7.00000

@oskarkrawczyk
Copy link
Member

@Palloxin I have absolutely no idea why would this happen, we don't interfere in any of these native objects. No idea if this a bug on our end, and if so how to fix it.

@Palloxin
Copy link
Author

@Palloxin Palloxin changed the title [Bug] Performance.now() gives automatic rounded values [Bug] Performance.now() gives automatic rounded values on Firefox Sep 29, 2024
@Palloxin
Copy link
Author

EDIT: only firefox.

@oskarkrawczyk oskarkrawczyk changed the title [Bug] Performance.now() gives automatic rounded values on Firefox Performance.now() gives automatic rounded values on Firefox Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants