Skip to content

Commit 5c526ad

Browse files
authored
fix(volume): improve definition of cubic yards conversion factor (#695)
1 parent ad147fd commit 5c526ad

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
},
100100
{
101101
"gzip": true,
102-
"limit": "6.67 KB",
102+
"limit": "6.68 KB",
103103
"path": "./dist/index.mjs"
104104
}
105105
]

src/conversions/measures/volume.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const volume: Measure = {
2828
// https://en.wikipedia.org/wiki/Acre-foot
2929
{ names: ['acre-foot', 'acre-feet'], symbols: ['ac⋅ft', 'ac ft'], ratio: 1233.481_837_547_52 },
3030
// https://en.wikipedia.org/wiki/Cubic_yard
31-
{ names: ['cubic yard', 'cubic yards'], symbols: ['cu yd', 'yd3', 'yd³'], ratio: 0.76 },
31+
{ names: ['cubic yard', 'cubic yards'], symbols: ['cu yd', 'yd3', 'yd³'], ratio: 0.764_554_857_984 },
3232
// https://en.wikipedia.org/wiki/Cubic_foot
3333
{ names: ['cubic foot', 'cubic feet'], symbols: ['cu ft', 'ft3', 'ft³'], ratio: 0.028_316_846_592 },
3434
{ names: ['board foot', 'board feet'], ratio: 0.002_359_737 },

src/converters/conversions/volume.test.ts

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ describe('conversions', () => {
1717
{ from: [1, 'Pm3'], to: [1e45, 'm3'] },
1818

1919
{ from: [1, 'ft3'], to: [0.028_316_846_592, 'm3'] },
20+
{ from: [1, 'yd3'], to: [0.764_554_857_984, 'm3'] },
21+
{ from: [27, 'ft3'], to: [1, 'yd3'] },
2022

2123
{ from: [1, 'US legal cup'], to: [240 + 0.000_000_000_000_03, 'mL'] },
2224
]);

0 commit comments

Comments
 (0)