mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-04 04:44:27 +02:00
docs: important admonition added for floating-points being value-preserving
This commit is contained in:
@@ -38,8 +38,10 @@ std::cout << q1.in(km) << '\n';
|
|||||||
quantity<si::kilo<si::metre>> q2 = q1;
|
quantity<si::kilo<si::metre>> q2 = q1;
|
||||||
```
|
```
|
||||||
|
|
||||||
The **mp-units** library follows [`std::chrono::duration`](https://en.cppreference.com/w/cpp/chrono/duration)
|
!!! important
|
||||||
logic and treats floating-point types as value-preserving.
|
|
||||||
|
The **mp-units** library follows [`std::chrono::duration`](https://en.cppreference.com/w/cpp/chrono/duration)
|
||||||
|
logic and treats floating-point types as value-preserving.
|
||||||
|
|
||||||
|
|
||||||
## Value-truncating conversions
|
## Value-truncating conversions
|
||||||
|
Reference in New Issue
Block a user