36 Commits

Author SHA1 Message Date
John Wellbelove
eba38690cd Added tests for upper and lower case scintific format. 2026-06-06 19:43:06 +01:00
John Wellbelove
c34197ab2b Added tests for NAN and INF
Fixed result for -INF
2026-06-06 19:21:01 +01:00
John Wellbelove
32b2919d65 treefmt changes 2026-06-06 14:13:11 +01:00
John Wellbelove
5352182913 Forces floating point numbers that are larger than than the internal integral workspace types to be formatted in scientific format.
Also allows scientific format to be forced for all floating point output.
NAN and INF outputs now follow case settings, as does the new scientific exponent letter. 'e' or 'E'.
2026-06-06 13:54:12 +01:00
John Wellbelove
aeb8e4f734 Formatted source files 2026-04-02 14:11:45 +01:00
John Wellbelove
d884719098 Fixed all 'extra semicolon' warnings 2025-12-16 09:15:26 +00:00
John Wellbelove
63d1a64e6c #787 etl::expected doesn't compile with ETL_LOG_ERRORS
Updated CI scripts
#786 u8string
#783 Cannot insert existing value to full set
#781 etl::multi_span::iterator::operator *() fails if first span is empty
#780 endian enum_type produces useless-cast warnings
#779 hash.h: warnings produced with -Wfloat-equal
2023-11-24 09:59:35 +00:00
John Wellbelove
baa47d1c33 Updated copyright notice 2022-06-10 21:45:37 +01:00
Noah Luskey
2932af8f93
Fix for double formatting with precision > 9 (#480)
* Add a test that reproduces the double formatting failure

* Fix root cause, restrict precision to 9 on 32 bit platforms, unrestricted on 64 bit
2021-12-10 08:49:08 +00:00
John Wellbelove
9a2108b982 Modified constant definitions 2021-09-01 16:46:58 +01:00
John Wellbelove
2cd0f79db4 Working code including 64 bit 2021-08-30 16:33:15 +01:00
John Wellbelove
df29374c6e Pre-release code 2021-08-29 18:50:20 +01:00
John Wellbelove
3659d6f3d9 Working code 2021-08-28 09:18:30 +01:00
John Wellbelove
dbfa71944f Abstracted unit test framework header 2021-03-05 13:52:34 +00:00
John Wellbelove
8b009a4fa9 issue-314-constexpr 2020-12-03 12:06:32 +00:00
John Wellbelove
3dd45ca504 issue-314-constexpr 2020-12-03 11:55:12 +00:00
John Wellbelove
569d7ea896 #306-bugfix-to-string-formatting 2020-11-19 11:15:10 +00:00
Heinz-Peter Liechtenecker
174a3d79be
Adding Tests for a fractional -1.0 < x < 0, fixing missing sign for integral parts equals to zero 0 (#306)
Co-authored-by: Heinz-Peter Liechtenecker <h.liechtenecker@fh-kaernten.at>
2020-11-19 10:34:39 +00:00
John Wellbelove
9eaa3e1178 Fix make_string for zero length literals
Remove redundant test support code
2020-11-18 18:29:20 +00:00
John Wellbelove
5a5579df7a cstring.h code moved to to string.h 2020-09-18 09:26:02 +01:00
finger42
8f1361649e
Build and run tests with Clang-9 on Linux (#252)
* Try to build on Ubuntu-18.04 with Clang-9

* Build with pushes on clang-9 branch too

* Using CC and CXX to set clang-9

* Adding atomic lib for test build on Linux with Clang

* Partial conversion CHECK_EQUAL to CHECK for clang-9

* Replaced CHECK_EQUAL with CHECK

* Replaced CHECK_EQUAL with CHECK

* Replaced CHECK_EQUAL with CHECK

* Replaced CHECK_EQUAL with CHECK

* Replaced CHECK_EQUAL with CHECK

* Replaced CHECK_EQUAL with CHECK

* Replaced CHECK_EQUAL with CHECK

Co-authored-by: finger42 <finger42>
2020-08-01 14:20:14 +01:00
John Wellbelove
b96e707bad Added showbase 2020-07-09 18:57:09 +01:00
John Wellbelove
83347ccfdd Work in progress 2020-01-09 11:15:50 +00:00
John Wellbelove
b32cc92edc Fixed rounding up bug in etl::to_string 2019-10-31 12:56:07 +00:00
John Wellbelove
e5325aa379 Fixed incorrect result for negative float to string 2019-10-11 18:35:58 +01:00
John Wellbelove
b926321da6 Merge remote-tracking branch 'origin/feature/to_string' into development 2019-04-16 18:08:26 +01:00
John Wellbelove
31f33e78ee Fixed bug in fractional part for floating point with leading zeros after the decimal point. 2019-04-16 08:39:38 +01:00
John Wellbelove
e62ba1356d Attempt to force changes to master 2019-04-15 19:23:54 +01:00
John Wellbelove
9ef75bd89e Final unit tests for all string types. 2019-04-14 19:26:55 +01:00
John Wellbelove
11da8e133f Changed etl::format_sepc template to etl::basic_firmat_spec.
Created individual format_spec typedefs for each string type.
2019-04-09 06:30:46 +01:00
John Wellbelove
4b79628bae Added etl::to_string, etl::to_wstring, etl::to_u16string and etl::to_u32string
plus formating support for integrals.
Updated version number.
2019-04-08 19:32:50 +01:00
John Wellbelove
e122b380a3 Added named base settings 2019-04-08 13:58:48 +01:00
John Wellbelove
5220837979 Completed unit tests 2019-04-07 15:37:20 +01:00
John Wellbelove
7feb3c1cc4 Created integral to_string.
Started etl::string tests.
2019-04-06 21:10:20 +01:00
John Wellbelove
b996e52244 Initial version 2019-03-03 22:35:19 +00:00
John Wellbelove
b110a967ab First commit 2019-03-01 21:08:40 +01:00