Sync changes from upstream repository

This commit is contained in:
Bozo the Builder
2024-08-22 01:43:04 -07:00
parent ae65ce6693
commit 904ef7893c
202 changed files with 1884 additions and 1694 deletions

View File

@@ -231,7 +231,7 @@ const ON_String ON_String::ApproximateFromNumber(
// thate are 300 digits long when a 1e300 comes by.
if (ON_String::FormatIntoBuffer(buffer, sizeof(buffer) / sizeof(buffer[0]), "%f", d) > 0)
return ON_String(buffer);
// It may be that 64 elements were not enought for %f format if the "reasonable range"
// It may be that 64 elements were not enough for %f format if the "reasonable range"
// test is not good enough. We try again with "%g".
}
if (ON_String::FormatIntoBuffer(buffer, sizeof(buffer) / sizeof(buffer[0]), "%g", d) > 0)