Home
last modified time | relevance | path

Searched refs:toFixed (Results 1 – 25 of 959) sorted by relevance

12345678910>>...39

/dports/java/openjdk11-jre/jdk11u-jdk-11.0.13-8-1/test/nashorn/script/basic/
H A DJDK-8155025.js.EXPECTED1 0.1.toFixed(1)=0.1
2 0.1.toFixed(2)=0.10
3 0.1.toFixed(3)=0.100
4 0.01.toFixed(1)=0.0
5 0.01.toFixed(2)=0.01
6 0.01.toFixed(3)=0.010
7 0.01.toFixed(4)=0.0100
8 0.001.toFixed(1)=0.0
9 0.001.toFixed(2)=0.00
10 0.001.toFixed(3)=0.001
[all …]
/dports/java/openjdk12/openjdk-jdk12u-jdk-12.0.2-10-4/test/nashorn/script/basic/
H A DJDK-8155025.js.EXPECTED1 0.1.toFixed(1)=0.1
2 0.1.toFixed(2)=0.10
3 0.1.toFixed(3)=0.100
4 0.01.toFixed(1)=0.0
5 0.01.toFixed(2)=0.01
6 0.01.toFixed(3)=0.010
7 0.01.toFixed(4)=0.0100
8 0.001.toFixed(1)=0.0
9 0.001.toFixed(2)=0.00
10 0.001.toFixed(3)=0.001
[all …]
/dports/java/openjdk11/jdk11u-jdk-11.0.13-8-1/test/nashorn/script/basic/
H A DJDK-8155025.js.EXPECTED1 0.1.toFixed(1)=0.1
2 0.1.toFixed(2)=0.10
3 0.1.toFixed(3)=0.100
4 0.01.toFixed(1)=0.0
5 0.01.toFixed(2)=0.01
6 0.01.toFixed(3)=0.010
7 0.01.toFixed(4)=0.0100
8 0.001.toFixed(1)=0.0
9 0.001.toFixed(2)=0.00
10 0.001.toFixed(3)=0.001
[all …]
/dports/java/openjdk14/jdk14u-jdk-14.0.2-12-1/test/nashorn/script/basic/
H A DJDK-8155025.js.EXPECTED1 0.1.toFixed(1)=0.1
2 0.1.toFixed(2)=0.10
3 0.1.toFixed(3)=0.100
4 0.01.toFixed(1)=0.0
5 0.01.toFixed(2)=0.01
6 0.01.toFixed(3)=0.010
7 0.01.toFixed(4)=0.0100
8 0.001.toFixed(1)=0.0
9 0.001.toFixed(2)=0.00
10 0.001.toFixed(3)=0.001
[all …]
/dports/java/openjdk13/jdk13u-jdk-13.0.10-1-1/test/nashorn/script/basic/
H A DJDK-8155025.js.EXPECTED1 0.1.toFixed(1)=0.1
2 0.1.toFixed(2)=0.10
3 0.1.toFixed(3)=0.100
4 0.01.toFixed(1)=0.0
5 0.01.toFixed(2)=0.01
6 0.01.toFixed(3)=0.010
7 0.01.toFixed(4)=0.0100
8 0.001.toFixed(1)=0.0
9 0.001.toFixed(2)=0.00
10 0.001.toFixed(3)=0.001
[all …]
/dports/editors/micro/micro-2.0.10/vendor/github.com/robertkrimen/otto/
H A Dnumber_test.go74 test(`new Number(451).toFixed(2)`, "451.00")
75 test(`12345.6789.toFixed()`, "12346")
76 test(`12345.6789.toFixed(1)`, "12345.7")
78 test(`(1.23e-20).toFixed(2)`, "0.00")
81 test(`(-2.34).toFixed(1)`, "-2.3")
89 new Number(1e21).toFixed(),
90 new Number(1e21).toFixed(0),
91 new Number(1e21).toFixed(1),
92 new Number(1e21).toFixed(1.1),
93 new Number(1e21).toFixed(0.9),
[all …]
/dports/net-mgmt/thanos/thanos-0.11.0/vendor/github.com/prometheus/prometheus/web/ui/react-app/src/graph/
H A DGraphHelpers.ts14 return (y / 1e24).toFixed(2) + 'Y';
16 return (y / 1e21).toFixed(2) + 'Z';
18 return (y / 1e18).toFixed(2) + 'E';
20 return (y / 1e15).toFixed(2) + 'P';
22 return (y / 1e12).toFixed(2) + 'T';
24 return (y / 1e9).toFixed(2) + 'G';
26 return (y / 1e6).toFixed(2) + 'M';
28 return (y / 1e3).toFixed(2) + 'k';
30 return y.toFixed(2);
32 return y.toFixed(2);
[all …]
/dports/net-mgmt/promscale/promscale-0.6.2/vendor/github.com/thanos-io/thanos/pkg/ui/react-app/src/pages/graph/
H A DGraphHelpers.ts15 return (y / 1e24).toFixed(2) + 'Y';
17 return (y / 1e21).toFixed(2) + 'Z';
19 return (y / 1e18).toFixed(2) + 'E';
21 return (y / 1e15).toFixed(2) + 'P';
23 return (y / 1e12).toFixed(2) + 'T';
25 return (y / 1e9).toFixed(2) + 'G';
27 return (y / 1e6).toFixed(2) + 'M';
29 return (y / 1e3).toFixed(2) + 'k';
31 return y.toFixed(2);
33 return y.toFixed(2);
[all …]
/dports/net-mgmt/promscale/promscale-0.6.2/vendor/github.com/prometheus/prometheus/web/ui/react-app/src/pages/graph/
H A DGraphHelpers.ts15 return (y / 1e24).toFixed(2) + 'Y';
17 return (y / 1e21).toFixed(2) + 'Z';
19 return (y / 1e18).toFixed(2) + 'E';
21 return (y / 1e15).toFixed(2) + 'P';
23 return (y / 1e12).toFixed(2) + 'T';
25 return (y / 1e9).toFixed(2) + 'G';
27 return (y / 1e6).toFixed(2) + 'M';
29 return (y / 1e3).toFixed(2) + 'k';
31 return y.toFixed(2);
33 return y.toFixed(2);
[all …]
/dports/www/grafana8/grafana-8.3.6/packages/grafana-data/src/valueFormats/
H A DvalueFormats.test.ts91 expect(toFixed(100)).toBe('100');
93 expect(toFixed(100.4)).toBe('100');
94 expect(toFixed(100.5)).toBe('101');
98 expect(toFixed(100, 1)).toBe('100.0');
100 expect(toFixed(100.37, 1)).toBe('100.4');
101 expect(toFixed(100.63, 1)).toBe('100.6');
103 expect(toFixed(100.4, 2)).toBe('100.40');
104 expect(toFixed(100.5, 2)).toBe('100.50');
113 expect(toFixed(NaN)).toBe('NaN');
114 expect(toFixed(Number.NEGATIVE_INFINITY)).toBe(negInf);
[all …]
H A DarithmeticFormatters.ts1 import { toFixed, FormattedValue } from './valueFormats';
8 return { text: toFixed(size, decimals), suffix: '%' };
15 return { text: toFixed(100 * size, decimals), suffix: '%' };
36 text: parseFloat(toFixed(value, decimals)).toString(16).toUpperCase(),
H A DdateTimeFormatters.ts3 import { toFixed, toFixedScaled, FormattedValue, ValueFormatter } from './valueFormats';
51 return { text: toFixed(size, decimals), suffix: ' ns' };
73 return { text: toFixed(size, decimals), suffix: ' µs' };
87 return { text: toFixed(size, decimals), suffix: ' ms' };
136 return { text: toFixed(size, decimals), suffix: ' s' };
160 return { text: toFixed(size, decimals), suffix: ' min' };
178 return { text: toFixed(size, decimals), suffix: ' hour' };
194 return { text: toFixed(size, decimals), suffix: ' day' };
/dports/net-mgmt/prometheus2/prometheus-2.30.3/web/ui/react-app/src/pages/graph/
H A DGraphHelpers.ts15 return (y / 1e24).toFixed(2) + 'Y';
17 return (y / 1e21).toFixed(2) + 'Z';
19 return (y / 1e18).toFixed(2) + 'E';
21 return (y / 1e15).toFixed(2) + 'P';
23 return (y / 1e12).toFixed(2) + 'T';
25 return (y / 1e9).toFixed(2) + 'G';
27 return (y / 1e6).toFixed(2) + 'M';
29 return (y / 1e3).toFixed(2) + 'k';
31 return y.toFixed(2);
33 return y.toFixed(2);
[all …]
/dports/www/grafana8/grafana-8.3.6/vendor/github.com/prometheus/prometheus/web/ui/react-app/src/pages/graph/
H A DGraphHelpers.ts15 return (y / 1e24).toFixed(2) + 'Y';
17 return (y / 1e21).toFixed(2) + 'Z';
19 return (y / 1e18).toFixed(2) + 'E';
21 return (y / 1e15).toFixed(2) + 'P';
23 return (y / 1e12).toFixed(2) + 'T';
25 return (y / 1e9).toFixed(2) + 'G';
27 return (y / 1e6).toFixed(2) + 'M';
29 return (y / 1e3).toFixed(2) + 'k';
31 return y.toFixed(2);
33 return y.toFixed(2);
[all …]
/dports/net/storj/storj-1.45.3/web/storagenode/src/private/memory/
H A Dsize.ts31 return `${parseFloat((size / SizeBreakpoints.EB).toFixed(decimals))}EB`;
33 return `${parseFloat((size / SizeBreakpoints.PB).toFixed(decimals))}PB`;
35 return `${parseFloat((size / SizeBreakpoints.TB).toFixed(decimals))}TB`;
37 return `${parseFloat((size / SizeBreakpoints.GB).toFixed(decimals))}GB`;
39 return `${parseFloat((size / SizeBreakpoints.MB).toFixed(decimals))}MB`;
41 return `${parseFloat((size / SizeBreakpoints.KB).toFixed(decimals))}KB`;
/dports/net/storj/storj-1.45.3/web/multinode/src/private/memory/
H A Dsize.ts31 return `${parseFloat((size / SizeBreakpoints.EB).toFixed(decimals))}EB`;
33 return `${parseFloat((size / SizeBreakpoints.PB).toFixed(decimals))}PB`;
35 return `${parseFloat((size / SizeBreakpoints.TB).toFixed(decimals))}TB`;
37 return `${parseFloat((size / SizeBreakpoints.GB).toFixed(decimals))}GB`;
39 return `${parseFloat((size / SizeBreakpoints.MB).toFixed(decimals))}MB`;
41 return `${parseFloat((size / SizeBreakpoints.KB).toFixed(decimals))}KB`;
/dports/graphics/qt5-wayland/kde-qtwayland-5.15.2p37/src/compositor/extensions/
H A Dqwlqttouch.cpp53 static inline int toFixed(qreal f) in toFixed() function
93 int x = toFixed(tp.pos().x()); in postTouchEvent()
94 int y = toFixed(tp.pos().y()); in postTouchEvent()
95 int nx = toFixed(tp.normalizedPos().x()); in postTouchEvent()
96 int ny = toFixed(tp.normalizedPos().y()); in postTouchEvent()
97 int w = toFixed(tp.ellipseDiameters().width()); in postTouchEvent()
98 int h = toFixed(tp.ellipseDiameters().height()); in postTouchEvent()
99 int vx = toFixed(tp.velocity().x()); in postTouchEvent()
100 int vy = toFixed(tp.velocity().y()); in postTouchEvent()
/dports/www/osrm-backend/osrm-backend-5.26.0/include/util/
H A Dcoordinate.hpp88 inline FixedLatitude toFixed(const FloatLatitude floating) in toFixed() function
103 inline FixedLatitude toFixed(const UnsafeFloatLatitude floating) in toFixed() function
118 inline FixedLongitude toFixed(const FloatLongitude floating) in toFixed() function
133 inline FixedLongitude toFixed(const UnsafeFloatLongitude floating) in toFixed() function
195 : Coordinate(toFixed(lon_), toFixed(lat_)) in Coordinate()
200 : Coordinate(toFixed(lon_), toFixed(lat_)) in Coordinate()
265 : Coordinate(toFixed(other.lon), toFixed(other.lat)) in Coordinate()
/dports/net/storj/storj-1.45.3/web/satellite/src/utils/
H A DbytesSize.ts35 this.formattedBytes = (bytes / Memory.Bytes).toFixed(this.precision);
39 this.formattedBytes = (bytes / Memory.KB).toFixed(this.precision);
43 this.formattedBytes = (bytes / Memory.MB).toFixed(this.precision);
47 this.formattedBytes = (bytes / Memory.GB).toFixed(this.precision);
51 this.formattedBytes = (bytes / Memory.TB).toFixed(this.precision);
55 this.formattedBytes = (bytes / Memory.PB).toFixed(this.precision);
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/devtools-frontend/src/test/perf/application/
H A Dboot-perf_test.ts25 console.log(`Mean boot time: ${mean(values).toFixed(2)}ms`);
26 console.log(`50th percentile boot time: ${percentile(values, 0.5).toFixed(2)}ms`);
27 console.log(`90th percentile boot time: ${percentile(values, 0.9).toFixed(2)}ms`);
28 console.log(`99th percentile boot time: ${percentile(values, 0.99).toFixed(2)}ms`);
37 const timeTaken = (performance.now() - start).toFixed(2);
/dports/astro/stellarium/stellarium-0.21.3/scripts/tests/
H A Dget_view_data.ssc19 LabelMgr.setLabelText(altLabId, "alt=" + core.getViewAltitudeAngle().toFixed(4));
20 LabelMgr.setLabelText(aziLabId, "azi=" + core.getViewAzimuthAngle().toFixed(4));
21 LabelMgr.setLabelText(raLabId, "ra=" + core.getViewRaAngle().toFixed(4));
22 LabelMgr.setLabelText(decLabId, "dec=" + core.getViewDecAngle().toFixed(4));
23 LabelMgr.setLabelText(raJ2000LabId, "raJ2000=" + core.getViewRaJ2000Angle().toFixed(4));
24 LabelMgr.setLabelText(decJ2000LabId, "decJ2000=" + core.getViewDecJ2000Angle().toFixed(4));
/dports/www/p5-JE/JE-0.066/t/
H A D15.07-number-objects.t245 // 15.7.4.5: toFixed
253 var f = Number.prototype.toFixed;
266 ok(NaN.toFixed() === "NaN", 'NaN.toFixed')
267 ok(27.3.toFixed() === "27", 'toFixed with no args')
268 is(27.3.toFixed(NaN), "27", 'toFixed with NaN arg')
269 is(27.37.toFixed(1.9), "27.4", 'toFixed with float arg')
270 is(27.3.toFixed(0), "27", 'toFixed with 0 arg')
271 is(30.1.toFixed(5), "30.10000", 'toFixed returns trailing zeroes')
272 is(30.125.toFixed(2), "30.13", 'toFixed rounds 5 up')
273 is(1.5.toFixed(0), "2", 'toFixed(0) rounds 5 up')
[all …]
/dports/www/osrm-backend/osrm-backend-5.26.0/src/extractor/
H A Draster_source.cpp90 const auto _xmin = static_cast<std::int32_t>(util::toFixed(util::FloatLongitude{xmin})); in LoadRasterSource()
91 const auto _xmax = static_cast<std::int32_t>(util::toFixed(util::FloatLongitude{xmax})); in LoadRasterSource()
92 const auto _ymin = static_cast<std::int32_t>(util::toFixed(util::FloatLatitude{ymin})); in LoadRasterSource()
93 const auto _ymax = static_cast<std::int32_t>(util::toFixed(util::FloatLatitude{ymax})); in LoadRasterSource()
144 return found.GetRasterData(static_cast<std::int32_t>(util::toFixed(util::FloatLongitude{lon})), in GetRasterDataFromSource()
145 static_cast<std::int32_t>(util::toFixed(util::FloatLatitude{lat}))); in GetRasterDataFromSource()
167 static_cast<std::int32_t>(util::toFixed(util::FloatLongitude{lon})), in GetRasterInterpolateFromSource()
168 static_cast<std::int32_t>(util::toFixed(util::FloatLatitude{lat}))); in GetRasterInterpolateFromSource()
/dports/lang/coffeescript/coffeescript-2.6.1/test/
H A Dnumeric_literal_separators.coffee31 # Somehow, `3..toFixed()` is valid JavaScript; though just `3.toFixed()`
32 # is not. CoffeeScript has long allowed code like `3.toFixed()` to compile
33 # into `3..toFixed()`.
34 eq 3.toFixed(), '3'
/dports/textproc/pear-Horde_Text_Flowed/Horde_Text_Flowed-2.0.4/test/Horde/Text/Flowed/
H A DFlowedTest.php75 $flowed->toFixed()
82 $flowed->toFixed()
88 $flowed->toFixed()

12345678910>>...39