You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
throwUnitError.unitNotFound(message:"Name '\(name)' not recognized")
60
60
}
@@ -67,7 +67,7 @@ internal class Registry {
67
67
/// - parameter dimension: The unit dimensionality as a dictionary of quantities and their respective exponents.
68
68
/// - parameter coefficient: The value to multiply a base unit of this dimension when converting it to this unit. For base units, this is 1.
69
69
/// - parameter constant: The value to add to a base unit when converting it to this unit. This is added after the coefficient is multiplied according to order-of-operations.
70
-
internalfunc addUnit(
70
+
func addUnit(
71
71
name:String,
72
72
symbol:String,
73
73
dimension:[Quantity:Int],
@@ -95,7 +95,7 @@ internal class Registry {
95
95
}
96
96
97
97
/// Returns all units currently defined by the registry
0 commit comments