xo-unit: + xquantity.rescale_ext() method
This commit is contained in:
parent
5a1f2e74e4
commit
c1b7e94e82
6 changed files with 50 additions and 24 deletions
|
|
@ -21,7 +21,7 @@ main () {
|
|||
cerr << "qty3: " << qty3 << endl;
|
||||
|
||||
/* rescale to mm */
|
||||
xquantity res = qty3.rescale(xo::qty::nu::millimeter);
|
||||
xquantity res = qty3.rescale_ext(xo::qty::u::millimeter);
|
||||
|
||||
/* 2286mm */
|
||||
cerr << "res: " << res << endl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue