Commit Graph

3 Commits

Author SHA1 Message Date
Michał Janiszewski
d4be50490f
Add headers missing for compilation with GCC (#1468)
Things that required such update included:
* `wstringstream`
* `setprecision`
* `SCODE_CODE`, `E_BOUNDS`
* Various SAL macros
2021-02-01 08:40:49 -08:00
pi1024e
c1fefd3a7b
Change precision and variables regarding the number of digits to be unsigned instead of signed (#1092) 2020-05-18 20:14:40 -07:00
Rudy Huyn
2ff7bb4089 Unit Converter - Calculate the rounding precision of results based on the source (#498)
* precisely calculates the number of digits of the source and compute the number of significant digits of the result based on that.

* fix unit test

* Fix warning C4267

* Optimize how we calculate the number of digits in the integer part and don't trim the value when used by the currency converter

* modify GetNumberSignificantDigits

* fix CI error

* Access to wstring::npos from static calls

* Move UnitConverter static methods related to number to NumberFormattingUtils

* rename namespace

* Add comment and fix typo

* Move standard headers
2019-07-16 17:00:57 -07:00