Skip to content

Commit

Permalink
refactor: Moves & comments volume units
Browse files Browse the repository at this point in the history
  • Loading branch information
NeedleInAJayStack committed Apr 18, 2024
1 parent e42c209 commit 47657f2
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Sources/Units/Unit/DefaultUnits.swift
Original file line number Diff line number Diff line change
Expand Up @@ -986,12 +986,7 @@ enum DefaultUnits {
dimension: [.Length: 3],
coefficient: 1000
)
static let bushel = try! DefinedUnit(
name: "bushel",
symbol: "bushel",
dimension: [.Length: 3],
coefficient: 0.03523907
)
// Liquid measures
static let teaspoon = try! DefinedUnit(
name: "teaspoon",
symbol: "tsp",
Expand Down Expand Up @@ -1022,7 +1017,6 @@ enum DefaultUnits {
dimension: [.Length: 3],
coefficient: 473.176473e-6
)
// Liquid quart: https://en.wikipedia.org/wiki/Quart#US_liquid_quart
static let quart = try! DefinedUnit(
name: "quart",
symbol: "qt",
Expand All @@ -1035,6 +1029,14 @@ enum DefaultUnits {
dimension: [.Length: 3],
coefficient: 0.003785411784
)
// Dry measures
static let bushel = try! DefinedUnit(
name: "bushel",
symbol: "bushel",
dimension: [.Length: 3],
coefficient: 0.03523907
)
// Imperial measures
static let imperialFluidOunce = try! DefinedUnit(
name: "imperialFluidOunce",
symbol: "ifl_oz",
Expand Down

0 comments on commit 47657f2

Please sign in to comment.