Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
363 bytes
|
Line | |
---|
1 | /*
|
---|
2 | * This is a TypeScript port of the original Java version, which was written by
|
---|
3 | * Gil Tene as described in
|
---|
4 | * https://github.com/HdrHistogram/HdrHistogram
|
---|
5 | * and released to the public domain, as explained at
|
---|
6 | * http://creativecommons.org/publicdomain/zero/1.0/
|
---|
7 | */
|
---|
8 |
|
---|
9 | const ulp = (x: number) => Math.pow(2, Math.floor(Math.log2(x)) - 52);
|
---|
10 |
|
---|
11 | export default ulp;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.