Skip to Content
Platform.Ontology

Math function precision

Tiny differences in Math.tan, acosh, sinh and others across engines and CPUs.

Gets silentlyGraphics and fingerprintingMathWeb browsersWhen the page loadsWhile you use it

In one line

Can run maths tests and use the last digits to tell your browser apart

Tiny differences in Math.tan, acosh, sinh and others across engines and CPUs.

Results of about 10 transcendental functions differ in the last digits between V8, SpiderMonkey, JavaScriptCore and OS math libraries. Identifies engine version and sometimes CPU family. Firefox 145 made some math more uniform.

What it can and can't do

What the user does: Nothing. It happens when the page loads

It can

  • Compute about 10 maths functions and compare the last digits
  • Tell Chrome, Firefox and Safari engines apart
  • Sometimes guess your system

It cannot

  • See your files or what you typed
  • Ask permission first
  • Name your exact device model
  • Know who you are by itself

Browser support

BrowserStatusFirst versionReleasedNote
ChromeSupported12008-12-11None
EdgeSupported122015-07-29None
FirefoxSupported12004-11-09None
SafariSupported32007-10-26None
Safari on iPhoneSupported3.22010-04-03None
Chrome on AndroidSupported182012-06-27None
Samsung InternetSupported1.02013-04-27None

How a site asks for it

APIMath.acos(), asinh(), atanh(), expm1(), log1p(), sinh(), tan(), pow() ...
How access is grantednone
What the user seesNone
Needs a secure context (HTTPS)No
Needs a user gestureNo
How long it lastsread fresh on every page load; nothing stored
How to take it backnone needed (no grant)
Inside an iframeReadable from cross-origin iframes too (same values)

Typical flow

  1. Page script reads the value
  2. No prompt is shown

Data you get

Shape: object
How often: static per session

FieldTypeUnitRangePrecision
valueslistfloat64about 10 numbers17 significant digits

Technical limits

  • Engine class only

The story

What it is

Tiny differences in how Math.tan and similar functions round can show which browser engine and chip you have.

For you

You see nothing. Your browser quietly does a few unusual math steps and looks at the last digits. They differ a little between engines such as Chrome, Firefox and Safari.

For makers

Math results are usually the same everywhere, but tiny gaps exist. Fraud tools use them to check that the browser is what it claims. Trackers add them to a device ID.

Where you see it

TypeExampleApps
securityA bot detector spots a script that claims to be Safari but gives Chrome style math results.None named
analyticsA fingerprint library adds math results to a device ID.FingerprintJS, CreepJS
adsAn ad script tells browser engines apart when the user agent string is hidden.None named
gamesA web game with physics avoids risky math so a match plays the same on every browser.None named
educationA graphing tool like Desmos controls its math rounding so students see the same curve on any device.Desmos
bankingA bank adds the math engine result to a check that a login came from a real browser.None named
developerA developer tests number code in three browsers to find tiny rounding differences.None named

Risks

  • Hard to change
  • Adds to a device ID

Good uses and abuse

Legitimate uses

  • None

Known abuse

  • Engine fingerprint

Scores

ScoreValueMeaning
Sensitivity1 of 5How revealing the data is
Utility1 of 5How useful it is to honest apps
Friction0 of 5How much the user has to do
Fingerprint bits1.5Rough identifying entropy, when known

History

  • 2025-11, Firefox 145: Android math operations made more consistent

Sources

How well checked: Based on official documentation.

On this page