mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-03 20:34:26 +02:00
style: another whitespace removed from the currency
example
This commit is contained in:
@@ -81,11 +81,9 @@ quantity<To, Rep> exchange_to(quantity<From, Rep> q)
|
|||||||
template<ReferenceOf<currency> auto To, ReferenceOf<currency> auto From, auto PO, typename Rep>
|
template<ReferenceOf<currency> auto To, ReferenceOf<currency> auto From, auto PO, typename Rep>
|
||||||
quantity_point<To, PO, Rep> exchange_to(quantity_point<From, PO, Rep> q)
|
quantity_point<To, PO, Rep> exchange_to(quantity_point<From, PO, Rep> q)
|
||||||
{
|
{
|
||||||
return quantity_point{zero +
|
return quantity_point{zero + static_cast<Rep>(exchange_rate<q.unit, get_unit(To)>() *
|
||||||
|
(q - q.absolute_point_origin).numerical_value_ref_in(q.unit)) *
|
||||||
static_cast<Rep>(exchange_rate<q.unit, get_unit(To)>() *
|
To};
|
||||||
(q - q.absolute_point_origin).numerical_value_ref_in(q.unit)) *
|
|
||||||
To};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
Reference in New Issue
Block a user