xo-unit: + xquantity.rescale_ext() method

This commit is contained in:
Roland Conybeare 2024-05-24 17:54:52 -04:00
commit c1b7e94e82
6 changed files with 50 additions and 24 deletions

View file

@ -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;