diff --git a/docs/users_guide/framework_basics/value_conversions.md b/docs/users_guide/framework_basics/value_conversions.md index 2181d986..e31575ca 100644 --- a/docs/users_guide/framework_basics/value_conversions.md +++ b/docs/users_guide/framework_basics/value_conversions.md @@ -98,10 +98,10 @@ the `value_cast(q)` which always returns the most precise result: } // namespace unit_symbols - using Price = quantity; - using Scaled = quantity; + using Price = quantity_point; + using Scaled = quantity_point, std::int64_t>; - Price price = 12.95 * USD; + Price price{12.95 * USD}; Scaled spx = value_cast(price); ``` @@ -121,10 +121,10 @@ the `value_cast(q)` which always returns the most precise result: } // namespace unit_symbols - using Price = quantity; - using Scaled = quantity; + using Price = quantity_point; + using Scaled = quantity_point, std::int64_t>; - Price price = 12.95 * USD; + Price price{12.95 * USD}; Scaled spx = value_cast(price); ``` @@ -144,9 +144,9 @@ the `value_cast(q)` which always returns the most precise result: } // namespace unit_symbols - using Price = quantity; - using Scaled = quantity; + using Price = quantity_point; + using Scaled = quantity_point, std::int64_t>; - Price price = 12.95 * USD; + Price price{12.95 * USD}; Scaled spx = value_cast(price); ```